Skip to content

Preview should handle updates itself #236

@remcoder

Description

@remcoder

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions