-
| How can I improve my parallel simulation speed when running on gpu when rolling out? Are there any tips for that? | 
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
| There was some discussions on ways to improve performance in this thread Setting "performance_mode" is done as part of  gs.init(logging_level="warning", backend=gs.gpu, performance_mode=True)This will improve performance by a bit, but don't expect a major performance boost from it. Rendering cameras to video can affect simulation speed. Two things that I've found that help: 
 Here's a rough idea on limiting the camera renderings to get 30 frames per second: # Calculate the steps between rendering 
fps = 30
self.steps_per_frame = round(1.0 / fps / dt)
# Create a step counter
self.current_step = 0def step(self, actions: torch.Tensor):
    self.current_step += 1
    if self.current_step % self.steps_per_frame == 0:
        self.camera.render()
    # ... do other step related things...Genesis Force, a framework built on top of Genesis, has this optimization built-in. There are also several examples in that repo that might be helpful. At least, you can check the performance of those examples compared to your project. Outside of that, it's hard to say why your simulations are running slowly without seeing the code. | 
Beta Was this translation helpful? Give feedback.
There was some discussions on ways to improve performance in this thread
Setting "performance_mode" is done as part of
gs.init. For example:This will improve performance by a bit, but don't expect a major performance boost from it.
Rendering cameras to video can affect simulation speed. Two things that I've found that help:
env_idxparameter when you add the camera so you're only rendering for one environment.camera.render()for each step will be wasteful, since you only need a video at 30-60 FPS. Instead, only render on some steps.Here's a rough idea on limiting the camera renderings t…