Skip to content

Commit 235a32a

Browse files
committed
Merge pull request #113023 from dsnopek/tracy-framemark-on-linux
Correctly mark frame start for profilers (Tracy/Perfetto) on Linux
2 parents 101b827 + cb7d00e commit 235a32a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

platform/linuxbsd/os_linuxbsd.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -971,8 +971,6 @@ String OS_LinuxBSD::get_system_dir(SystemDir p_dir, bool p_shared_storage) const
971971
}
972972

973973
void OS_LinuxBSD::run() {
974-
GodotProfileFrameMark;
975-
GodotProfileZone("OS_LinuxBSD::run");
976974
if (!main_loop) {
977975
return;
978976
}
@@ -985,6 +983,8 @@ void OS_LinuxBSD::run() {
985983
//uint64_t frame=0;
986984

987985
while (true) {
986+
GodotProfileFrameMark;
987+
GodotProfileZone("OS_LinuxBSD::run");
988988
DisplayServer::get_singleton()->process_events(); // get rid of pending events
989989
#ifdef SDL_ENABLED
990990
if (joypad_sdl) {

0 commit comments

Comments
 (0)