diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-05-26 01:05:08 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-05-26 01:06:05 -0300 |
commit | 9df77d276593ef7082e3971d1c180b8f74b0cb2e (patch) | |
tree | 449dc05c32222d54507dba5cfc0973097d9ffdf4 /main/main.cpp | |
parent | 3826b66a6ed785845757fbe54f6a3d028ef79720 (diff) |
ability to run 2D physics in a thread
also, 2D physics is now thread safe too.
see physics_2d/thread_model
Diffstat (limited to 'main/main.cpp')
-rw-r--r-- | main/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/main/main.cpp b/main/main.cpp index f826b36212..531d7cfbdc 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -1356,6 +1356,8 @@ bool Main::iteration() { message_queue->flush(); PhysicsServer::get_singleton()->step(frame_slice*time_scale); + + Physics2DServer::get_singleton()->end_sync(); Physics2DServer::get_singleton()->step(frame_slice*time_scale); time_accum-=frame_slice; |