You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-21 14:57:09 +00:00
Add some important profiling hooks.
This commit is contained in:
@@ -40,6 +40,7 @@
|
||||
#include "core/debugger/engine_debugger.h"
|
||||
#include "core/io/file_access.h"
|
||||
#include "core/os/main_loop.h"
|
||||
#include "core/profiling/profiling.h"
|
||||
#include "drivers/unix/dir_access_unix.h"
|
||||
#include "drivers/unix/file_access_unix.h"
|
||||
#include "main/main.h"
|
||||
@@ -79,6 +80,8 @@ void OS_Web::fs_sync_callback() {
|
||||
}
|
||||
|
||||
bool OS_Web::main_loop_iterate() {
|
||||
GodotProfileFrameMark;
|
||||
GodotProfileZone("OS_Web::main_loop_iterate");
|
||||
if (is_userfs_persistent() && idb_needs_sync && !idb_is_syncing) {
|
||||
idb_is_syncing = true;
|
||||
idb_needs_sync = false;
|
||||
|
||||
Reference in New Issue
Block a user