webots icon indicating copy to clipboard operation
webots copied to clipboard

Add `--no-meshes` and `--no-textures` arguments to reduce RAM usage

Open lukicdarkoo opened this issue 5 years ago • 1 comments

In Reinforcement Learning applications, devices derived from AbstractCamera are usually not used. Therefore, we can disable meshes and textures to reduce the RAM footprint.

I have just done some tests with UR5e in an empty world:

  • 850MB with initial setup,
  • 400MB with all graphics enchantments turned off,
  • 177MB with meshes removed, and
  • 126MB with textures disabled.

We can add --no-meshes and --no-textures CLI arguments to disable all meshes and textures in the simulation.


If you need to do something similar now then you can add a boolean PROTO field and using Lua add conditional includes for meshes and textures.

lukicdarkoo avatar Feb 23 '21 17:02 lukicdarkoo

Scenario: No camera based device in simulation suggestion: Turning off rendering should turn the graphics enchantments off, freeing up RAM

Simon-Steinmann avatar Feb 23 '21 17:02 Simon-Steinmann