Offscreen rendering with mjr_render is extremely slow #2222
-
IntroHi! I am a graduate student using mujoco for research into ML for robotics. My setupI'm using MuJoCo version 3.2.1, Python version 3.10.14, Ubuntu 22.04.4 LTS with libglfw3-dev 3.3.6-1. Output of My questionI'm posting this question because I'm not really sure how to proceed into investigating this issue and I'd like some help. I'm trying to render both to a window and offscreen simultaneously, and for some reason offscreen rendering takes astronomically longer. I'd like to render at around 20Hz and a single call to render offscreen is taking >50ms right now, with the culprit being Below is the output of Notice that the calls to Below is the output of Now for some reason Frankly I'm at a loss for how to even investigate this further, as GLFW and rendering in general isn't really my area of expertise. One thing I know is that GLFW is the only OpenGL interface that seems to work on my system (neither EGL nor osmesa seem to work). I'm not even sure how that piece of information would be relevant but, figured I'd include it. What should I do next to investigate the source of this problem? Minimal model and/or code that explain my questionNo response Confirmations
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Hello @michaelala25, you may have already solved this, but I came across a possible solution mentioned in Improving the speed of the render #1485. Here is how to set up the EGL backend, which is recommended for headless environments: Prerequisite for rendering (all mujoco versions). Cheers! |
Beta Was this translation helpful? Give feedback.
Hello @michaelala25, you may have already solved this, but I came across a possible solution mentioned in Improving the speed of the render #1485.
Here is how to set up the EGL backend, which is recommended for headless environments: Prerequisite for rendering (all mujoco versions).
Cheers!