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

Method tick

modules/multiplayer/multiplayer_debugger.cpp:154–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154void MultiplayerDebugger::BandwidthProfiler::tick(double p_frame_time, double p_process_time, double p_physics_time, double p_physics_frame_time) {
155 uint64_t pt = OS::get_singleton()->get_ticks_msec();
156 if (pt - last_bandwidth_time > 200) {
157 last_bandwidth_time = pt;
158 int incoming_bandwidth = bandwidth_usage(bandwidth_in, bandwidth_in_ptr);
159 int outgoing_bandwidth = bandwidth_usage(bandwidth_out, bandwidth_out_ptr);
160
161 Array arr = { incoming_bandwidth, outgoing_bandwidth };
162 EngineDebugger::get_singleton()->send_message("multiplayer:bandwidth", arr);
163 }
164}
165
166// RPCProfiler
167

Callers

nothing calls this directly

Calls 5

get_ticks_msecMethod · 0.45
send_messageMethod · 0.45
push_backMethod · 0.45
clearMethod · 0.45
serializeMethod · 0.45

Tested by

no test coverage detected