mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 13:49:54 +00:00
Merge pull request #113023 from dsnopek/tracy-framemark-on-linux
Correctly mark frame start for profilers (Tracy/Perfetto) on Linux
This commit is contained in:
commit
235a32ad11
1 changed files with 2 additions and 2 deletions
|
|
@ -971,8 +971,6 @@ String OS_LinuxBSD::get_system_dir(SystemDir p_dir, bool p_shared_storage) const
|
||||||
}
|
}
|
||||||
|
|
||||||
void OS_LinuxBSD::run() {
|
void OS_LinuxBSD::run() {
|
||||||
GodotProfileFrameMark;
|
|
||||||
GodotProfileZone("OS_LinuxBSD::run");
|
|
||||||
if (!main_loop) {
|
if (!main_loop) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
@ -985,6 +983,8 @@ void OS_LinuxBSD::run() {
|
||||||
//uint64_t frame=0;
|
//uint64_t frame=0;
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
|
GodotProfileFrameMark;
|
||||||
|
GodotProfileZone("OS_LinuxBSD::run");
|
||||||
DisplayServer::get_singleton()->process_events(); // get rid of pending events
|
DisplayServer::get_singleton()->process_events(); // get rid of pending events
|
||||||
#ifdef SDL_ENABLED
|
#ifdef SDL_ENABLED
|
||||||
if (joypad_sdl) {
|
if (joypad_sdl) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue