Merge pull request #42167 from madmiraal/fix-42108

Remove the unnecessary sync() and the restrictions it imposes on 3D Physics.
This commit is contained in:
Rémi Verschelde 2020-11-16 09:32:48 +01:00 committed by GitHub
commit d7176e9040
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 4 additions and 19 deletions

View file

@ -2396,7 +2396,6 @@ bool Main::iteration() {
for (int iters = 0; iters < advance.physics_steps; ++iters) {
uint64_t physics_begin = OS::get_singleton()->get_ticks_usec();
PhysicsServer3D::get_singleton()->sync();
PhysicsServer3D::get_singleton()->flush_queries();
PhysicsServer2D::get_singleton()->sync();