-
-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Description
We can remove the necessity for the consumer to call render()
after updating public props. This way the lib can decide what type of update is needed.
Outline
Whenever a prop is changed, we queue the change.
Every tick, the queue is read and processed and emptied.
Update types
-
scene changes can be done immediately w/o requiring the model to be rerendered. Examples:
- build volume changes
- clipping planes
- ? toggling groups on and off ?
-
incremental parsing
- a new chunk of gcode is parsed and translated into a geometry
- only the new chunk is added to the scene
-
full render of the model
- the model is removed from the scene
- the parsed gcode is rendered anew and added to the scene
- example: extrusion width was changed