From cb7d00efadca36be8013e10c0d5437e4e4de420e Mon Sep 17 00:00:00 2001 From: David Snopek Date: Fri, 21 Nov 2025 14:59:55 -0600 Subject: [PATCH] Correctly mark frame start for profilers (Tracy/Perfetto) on Linux --- platform/linuxbsd/os_linuxbsd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {