Add some important profiling hooks.

This commit is contained in:
Lukas Tenbrink
2025-04-01 19:00:57 +02:00
parent e80194e31f
commit c3747884da
14 changed files with 118 additions and 10 deletions

View File

@ -39,6 +39,7 @@
#include "core/debugger/script_debugger.h"
#include "core/io/marshalls.h"
#include "core/os/main_loop.h"
#include "core/profiling/profiling.h"
#include "core/version_generated.gen.h"
#include "drivers/windows/dir_access_windows.h"
#include "drivers/windows/file_access_windows.h"
@ -2329,6 +2330,8 @@ void OS_Windows::run() {
main_loop->initialize();
while (true) {
GodotProfileFrameMark;
GodotProfileZone("OS_Windows::run");
DisplayServer::get_singleton()->process_events(); // get rid of pending events
if (Main::iteration()) {
break;