| 152 | } |
| 153 | |
| 154 | void 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 |
nothing calls this directly
no test coverage detected