From 55d5fe30e67864d44908f1837af45530696239ab Mon Sep 17 00:00:00 2001 From: rdb Date: Fri, 6 Sep 2019 10:27:57 +0200 Subject: [PATCH] bullet: release GIL during expensive do_physics call Fixes #726 --- panda/src/bullet/bulletWorld.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panda/src/bullet/bulletWorld.h b/panda/src/bullet/bulletWorld.h index bc032f1934..3218f92742 100644 --- a/panda/src/bullet/bulletWorld.h +++ b/panda/src/bullet/bulletWorld.h @@ -58,7 +58,7 @@ PUBLISHED: void set_gravity(PN_stdfloat gx, PN_stdfloat gy, PN_stdfloat gz); const LVector3 get_gravity() const; - int do_physics(PN_stdfloat dt, int max_substeps=1, PN_stdfloat stepsize=1.0f/60.0f); + BLOCKING int do_physics(PN_stdfloat dt, int max_substeps=1, PN_stdfloat stepsize=1.0f/60.0f); BulletSoftBodyWorldInfo get_world_info();