bryik/aframe-terrain-model-component

Handle updates

Closed this issue · 0 comments

bryik commented

Right now changing a property always creates an entire new model and old geometries are not disposed. There are lots of ways to improve this:

  • reuse old mesh (just recompute color and position buffer arrays as needed)

  • conditional update (only update properties that change)