diff options
author | Alvin Wong <alvinhochun@gmail.com> | 2024-07-21 21:43:29 +0800 |
---|---|---|
committer | Alvin Wong <alvinhochun@gmail.com> | 2024-07-21 21:46:01 +0800 |
commit | baf1cdabd1c493e3e29b8cf4213717aebca7aa1b (patch) | |
tree | 839868ec1eb29c3c8bb3820d346d2c963e27fba9 /main | |
parent | e25f3c0d38d457b15a63720240736f564ce0501b (diff) | |
download | redot-engine-baf1cdabd1c493e3e29b8cf4213717aebca7aa1b.tar.gz |
End benchmark of Main::Setup properly before calling setup2
Diffstat (limited to 'main')
-rw-r--r-- | main/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/main.cpp b/main/main.cpp index 870f7d31b8..bbb16d1507 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -2459,11 +2459,12 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph } #endif + OS::get_singleton()->benchmark_end_measure("Startup", "Main::Setup"); + if (p_second_phase) { return setup2(); } - OS::get_singleton()->benchmark_end_measure("Startup", "Main::Setup"); return OK; error: |