Add Node processing and physics processing cumulative (as opposed to delta) time.

This commit is contained in:
Mohammad Khashashneh 2020-08-21 18:54:20 +03:00
parent 819aa47fee
commit 0c027ef0f1
5 changed files with 80 additions and 2 deletions

View file

@ -412,6 +412,7 @@ bool SceneTree::physics_process(double p_time) {
MainLoop::physics_process(p_time);
physics_process_time = p_time;
physics_total_time += p_time;
emit_signal(SNAME("physics_frame"));
@ -438,6 +439,7 @@ bool SceneTree::process(double p_time) {
MainLoop::process(p_time);
process_time = p_time;
process_total_time += p_time;
if (multiplayer_poll) {
multiplayer->poll();