Browse Source

bullet: release GIL during expensive do_physics call

Fixes #726
rdb 6 years ago
parent
commit
55d5fe30e6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      panda/src/bullet/bulletWorld.h

+ 1 - 1
panda/src/bullet/bulletWorld.h

@@ -58,7 +58,7 @@ PUBLISHED:
   void set_gravity(PN_stdfloat gx, PN_stdfloat gy, PN_stdfloat gz);
   void set_gravity(PN_stdfloat gx, PN_stdfloat gy, PN_stdfloat gz);
   const LVector3 get_gravity() const;
   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();
   BulletSoftBodyWorldInfo get_world_info();