Skip to content

GLFW MUJOCO_GL option for Darwin (M-series) instead of CGL #2498

Discussion options

You must be logged in to vote

Hey @saran-t, just updating you.

For the off-screen rendering of 5 cameras on CPU, we found the best simulation stability and performance with running:

  • viewer.sync() and Renderer.render() (inside a viewer.lock() context) on the main loop capped at 30Hz (sleeping this thread makes the lock available for longer on the physics thread)
  • and mj_step() (with the viewer.lock() context) on the spawned physics thread.

To note: a combination of not using the appropriate locks during rendering the off-screen renderers and stepping the simulation yielded weird instabilities in simulation.

It would be great to not have to use the lock to render the cameras (because acquiring the viewer lock blocks th…

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@saran-t
Comment options

@hello-robot-shehab
Comment options

@hello-robot-shehab
Comment options

@hello-robot-shehab
Comment options

Answer selected by hello-robot-shehab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants