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

@ -37,6 +37,7 @@
#include "core/object/message_queue.h"
#include "core/object/worker_thread_pool.h"
#include "core/os/os.h"
#include "core/profiling/profiling.h"
#include "node.h"
#include "scene/animation/tween.h"
#include "scene/debugger/scene_debugger.h"
@ -572,6 +573,7 @@ void SceneTree::set_group(const StringName &p_group, const String &p_name, const
}
void SceneTree::initialize() {
GodotProfileZone("SceneTree::initialize");
ERR_FAIL_NULL(root);
MainLoop::initialize();
root->_set_tree(this);