MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / iteration

Method iteration

core/debugger/engine_debugger.cpp:115–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115void EngineDebugger::iteration(uint64_t p_frame_ticks, uint64_t p_process_ticks, uint64_t p_physics_ticks, double p_physics_frame_time) {
116 frame_time = USEC_TO_SEC(p_frame_ticks);
117 process_time = USEC_TO_SEC(p_process_ticks);
118 physics_time = USEC_TO_SEC(p_physics_ticks);
119 physics_frame_time = p_physics_frame_time;
120 // Notify tick to running profilers
121 for (KeyValue<StringName, Profiler> &E : profilers) {
122 Profiler &p = E.value;
123 if (!p.active || !p.tick) {
124 continue;
125 }
126 p.tick(p.data, frame_time, process_time, physics_time, physics_frame_time);
127 }
128 singleton->poll_events(true);
129}
130
131void EngineDebugger::initialize(const String &p_uri, bool p_skip_breakpoints, bool p_ignore_error_breaks, const Vector<String> &p_breakpoints, void (*p_allow_focus_steal_fn)()) {
132 register_uri_handler("tcp://", RemoteDebuggerPeerTCP::create); // TCP is the default protocol. Platforms/modules can add more.

Callers

nothing calls this directly

Calls 2

tickMethod · 0.45
poll_eventsMethod · 0.45

Tested by

no test coverage detected