compas-dev / compas_fab

Robotic fabrication package for the COMPAS Framework.
https://compas.dev/compas_fab/
MIT License
108 stars 32 forks source link

Add scene cache to 'Visualize Robot" component #381

Closed gonzalocasas closed 1 year ago

gonzalocasas commented 1 year ago

This is a small but noticeable performance optimization when there are lots of collision meshes in the scene. It prevents the retrieval and reloading of the scene constantly, and instead caches it for a couple of seconds. This very short cache is enough to prevent reloading while the user is, eg. dragging a slider to update the robot: perf-viz-robot

What type of change is this?

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.