aboutsummaryrefslogtreecommitdiff
path: root/servers/physics/space_sw.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2016-05-21 21:18:16 -0300
committerJuan Linietsky2016-05-21 21:18:16 -0300
commita75f8963380a1f6ae8501f21a1d3f3bef8a89d91 (patch)
treeae561ded247f81565c8287b6fd4b816f6ec762e6 /servers/physics/space_sw.cpp
parentc195c0df6b36debc870216dd42e49fbda70fa861 (diff)
downloadgodot-a75f8963380a1f6ae8501f21a1d3f3bef8a89d91.tar.gz
godot-a75f8963380a1f6ae8501f21a1d3f3bef8a89d91.tar.zst
godot-a75f8963380a1f6ae8501f21a1d3f3bef8a89d91.zip
First version of Profiler
It is now possible to profile GDScript as well as some parts of Godot internals.
Diffstat (limited to 'servers/physics/space_sw.cpp')
-rw-r--r--servers/physics/space_sw.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/servers/physics/space_sw.cpp b/servers/physics/space_sw.cpp
index 4cf7729b0..1e6f42aa0 100644
--- a/servers/physics/space_sw.cpp
+++ b/servers/physics/space_sw.cpp
@@ -736,6 +736,10 @@ SpaceSW::SpaceSW() {
direct_access = memnew( PhysicsDirectSpaceStateSW );
direct_access->space=this;
+
+ for(int i=0;i<ELAPSED_TIME_MAX;i++)
+ elapsed_time[i]=0;
+
}
SpaceSW::~SpaceSW() {