From d3fe21ef171cb83fe93769dd612e4926137fc447 Mon Sep 17 00:00:00 2001 From: erwincoumans Date: Wed, 14 Feb 2018 16:49:44 -0800 Subject: [PATCH] Add option GUI_MAIN_THREAD for running OpenGL in the main thread (Python thread). This already happens on Mac OSX by default. Pass all argc/argc from options to InProcessPhysicsClientSharedMemoryMainThread --- .../SharedMemoryInProcessPhysicsC_API.cpp | 14 +++++++------- examples/SharedMemory/SharedMemoryPublic.h | 1 + .../gym/pybullet_envs/bullet/bullet_client.py | 5 +++-- .../prediction/pybullet_sim_gym_env.py | 6 +++--- examples/pybullet/pybullet.c | 6 ++++++ 5 files changed, 20 insertions(+), 12 deletions(-) diff --git a/examples/SharedMemory/SharedMemoryInProcessPhysicsC_API.cpp b/examples/SharedMemory/SharedMemoryInProcessPhysicsC_API.cpp index fa1a31201..ee601ac4e 100644 --- a/examples/SharedMemory/SharedMemoryInProcessPhysicsC_API.cpp +++ b/examples/SharedMemory/SharedMemoryInProcessPhysicsC_API.cpp @@ -21,15 +21,15 @@ public: InProcessPhysicsClientSharedMemoryMainThread(int argc, char* argv[], bool useInProcessMemory) { - int newargc = argc+2; + int newargc = argc+3; char** newargv = (char**)malloc(sizeof(void*)*newargc); - for (int i=0;i