feat: updated engine
This commit is contained in:
parent
cbe99774ff
commit
f4cf6b3999
6607 changed files with 910135 additions and 430025 deletions
|
|
@ -32,6 +32,8 @@
|
|||
|
||||
#include "shared_controls.h"
|
||||
|
||||
#include "core/object/callable_mp.h"
|
||||
#include "core/object/class_db.h"
|
||||
#include "editor/editor_node.h"
|
||||
#include "editor/themes/editor_scale.h"
|
||||
#include "scene/gui/split_container.h"
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@
|
|||
|
||||
#include "node_view.h"
|
||||
|
||||
#include "core/object/callable_mp.h"
|
||||
#include "editor/editor_node.h"
|
||||
#include "editor/themes/editor_scale.h"
|
||||
#include "scene/gui/check_button.h"
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@
|
|||
|
||||
#include "object_view.h"
|
||||
|
||||
#include "core/object/callable_mp.h"
|
||||
#include "editor/editor_node.h"
|
||||
#include "editor/themes/editor_scale.h"
|
||||
#include "scene/gui/rich_text_label.h"
|
||||
|
|
|
|||
|
|
@ -30,10 +30,12 @@
|
|||
|
||||
#include "refcounted_view.h"
|
||||
|
||||
#include "core/object/callable_mp.h"
|
||||
#include "editor/editor_node.h"
|
||||
#include "editor/themes/editor_scale.h"
|
||||
#include "scene/gui/rich_text_label.h"
|
||||
#include "scene/gui/split_container.h"
|
||||
#include "scene/main/scene_tree.h"
|
||||
|
||||
SnapshotRefCountedView::SnapshotRefCountedView() {
|
||||
set_name(TTRC("RefCounted"));
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@
|
|||
|
||||
#include "shared_controls.h"
|
||||
|
||||
#include "core/object/callable_mp.h"
|
||||
#include "editor/editor_node.h"
|
||||
#include "editor/editor_string_names.h"
|
||||
#include "editor/themes/editor_scale.h"
|
||||
|
|
|
|||
|
|
@ -38,6 +38,8 @@
|
|||
#include "data_viewers/summary_view.h"
|
||||
|
||||
#include "core/config/project_settings.h"
|
||||
#include "core/object/callable_mp.h"
|
||||
#include "core/os/os.h"
|
||||
#include "core/os/time.h"
|
||||
#include "editor/debugger/editor_debugger_node.h"
|
||||
#include "editor/debugger/script_editor_debugger.h"
|
||||
|
|
@ -50,6 +52,7 @@
|
|||
#include "scene/gui/option_button.h"
|
||||
#include "scene/gui/split_container.h"
|
||||
#include "scene/gui/tab_container.h"
|
||||
#include "scene/main/scene_tree.h"
|
||||
|
||||
// ObjectDB snapshots are very large. In remote_debugger_peer.cpp, the max in_buf and out_buf size is 8mb.
|
||||
// Snapshots are typically larger than that, so we send them 6mb at a time. Leaving 2mb for other data.
|
||||
|
|
@ -270,7 +273,7 @@ void ObjectDBProfilerPanel::_snapshot_rmb(const Vector2 &p_pos, MouseButton p_bu
|
|||
rmb_menu->clear(false);
|
||||
|
||||
rmb_menu->add_icon_item(get_editor_theme_icon(SNAME("Rename")), TTRC("Rename"), OdbProfilerMenuOptions::ODB_MENU_RENAME);
|
||||
rmb_menu->add_icon_item(get_editor_theme_icon(SNAME("Folder")), TTRC("Show in File Manager"), OdbProfilerMenuOptions::ODB_MENU_SHOW_IN_FOLDER);
|
||||
rmb_menu->add_icon_item(get_editor_theme_icon(SNAME("Folder")), OS::get_singleton()->get_platform_string(OS::PLATFORM_STRING_FILE_MANAGER_OPEN), OdbProfilerMenuOptions::ODB_MENU_SHOW_IN_FOLDER);
|
||||
rmb_menu->add_icon_item(get_editor_theme_icon(SNAME("Remove")), TTRC("Delete"), OdbProfilerMenuOptions::ODB_MENU_DELETE);
|
||||
|
||||
rmb_menu->set_position(snapshot_list->get_screen_position() + p_pos);
|
||||
|
|
|
|||
|
|
@ -32,6 +32,8 @@
|
|||
|
||||
#include "objectdb_profiler_panel.h"
|
||||
|
||||
#include "core/object/callable_mp.h"
|
||||
|
||||
bool ObjectDBProfilerDebuggerPlugin::has_capture(const String &p_capture) const {
|
||||
return p_capture == "snapshot";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,8 +32,10 @@
|
|||
|
||||
#include "core/core_bind.h"
|
||||
#include "core/io/compression.h"
|
||||
#include "core/io/resource_loader.h"
|
||||
#include "core/object/class_db.h"
|
||||
#include "core/object/script_language.h"
|
||||
#include "scene/debugger/scene_debugger.h"
|
||||
#include "scene/debugger/scene_debugger_object.h"
|
||||
|
||||
#if defined(MODULE_GDSCRIPT_ENABLED) && defined(DEBUG_ENABLED)
|
||||
#include "modules/gdscript/gdscript.h"
|
||||
|
|
@ -275,11 +277,11 @@ void GameStateSnapshot::_get_rc_cycles(
|
|||
|
||||
SnapshotDataObject *next = objects[next_child.value];
|
||||
if (next != nullptr && next->is_class(RefCounted::get_class_static()) && !next->is_class(WeakRef::get_class_static()) && !p_traversed_objs.has(next)) {
|
||||
HashSet<SnapshotDataObject *> traversed_copy = p_traversed_objs;
|
||||
HashSet<SnapshotDataObject *> traversed_copy(p_traversed_objs);
|
||||
if (p_obj != p_source_obj) {
|
||||
traversed_copy.insert(p_obj);
|
||||
}
|
||||
_get_rc_cycles(next, p_source_obj, traversed_copy, r_ret_val, child_path);
|
||||
_get_rc_cycles(next, p_source_obj, std::move(traversed_copy), r_ret_val, child_path);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -310,10 +312,9 @@ void GameStateSnapshot::recompute_references() {
|
|||
if (!obj.value->is_class(RefCounted::get_class_static()) || obj.value->is_class(WeakRef::get_class_static())) {
|
||||
continue;
|
||||
}
|
||||
HashSet<SnapshotDataObject *> traversed_objs;
|
||||
LocalVector<String> cycles;
|
||||
|
||||
_get_rc_cycles(obj.value, obj.value, traversed_objs, cycles, "");
|
||||
_get_rc_cycles(obj.value, obj.value, HashSet<SnapshotDataObject *>(), cycles, "");
|
||||
Array cycles_array;
|
||||
for (const String &cycle : cycles) {
|
||||
cycles_array.push_back(cycle);
|
||||
|
|
|
|||
|
|
@ -36,7 +36,8 @@
|
|||
#include "core/os/time.h"
|
||||
#include "core/version.h"
|
||||
#include "scene/main/node.h"
|
||||
#include "scene/main/window.h"
|
||||
#include "scene/main/scene_tree.h"
|
||||
#include "scene/main/window.h" // IWYU pragma: keep. FIXME: Couldn't figure out how to make RequiredResult<T> equality checks be analyzed properly by include-cleaner.
|
||||
|
||||
void SnapshotCollector::initialize() {
|
||||
pending_snapshots.clear();
|
||||
|
|
|
|||
|
|
@ -30,11 +30,11 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "scene/debugger/scene_debugger.h"
|
||||
#include "core/variant/dictionary.h"
|
||||
#include "scene/debugger/scene_debugger_object.h"
|
||||
|
||||
struct SnapshotDataTransportObject : public SceneDebuggerObject {
|
||||
SnapshotDataTransportObject() :
|
||||
SceneDebuggerObject() {}
|
||||
SnapshotDataTransportObject() {}
|
||||
SnapshotDataTransportObject(Object *p_obj) :
|
||||
SceneDebuggerObject(p_obj) {}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue