diff --git a/platform/linuxbsd/os_linuxbsd.cpp b/platform/linuxbsd/os_linuxbsd.cpp index 92e9132cdaf..eb2e71c28cd 100644 --- a/platform/linuxbsd/os_linuxbsd.cpp +++ b/platform/linuxbsd/os_linuxbsd.cpp @@ -971,8 +971,6 @@ String OS_LinuxBSD::get_system_dir(SystemDir p_dir, bool p_shared_storage) const } void OS_LinuxBSD::run() { - GodotProfileFrameMark; - GodotProfileZone("OS_LinuxBSD::run"); if (!main_loop) { return; } @@ -985,6 +983,8 @@ void OS_LinuxBSD::run() { //uint64_t frame=0; while (true) { + GodotProfileFrameMark; + GodotProfileZone("OS_LinuxBSD::run"); DisplayServer::get_singleton()->process_events(); // get rid of pending events #ifdef SDL_ENABLED if (joypad_sdl) {