mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Add some important profiling hooks.
This commit is contained in:
parent
e80194e31f
commit
c3747884da
14 changed files with 118 additions and 10 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue