didimitrie / future.speckle

Beta.Speckle is an online parametric model viewer. It enables sharing with your clients/stakeholders/community flexible designs, not just static artefacts.
http://beta.speckle.xyz
MIT License
23 stars 5 forks source link

Add unload routines to all viewer modules #52

Open alexykot opened 8 years ago

alexykot commented 8 years ago

Renderer, sliders and other parts of the viewer system are all missing unload routines. Correct unloading is critical when using viewer inside react app, as you need to be able to clean up the DOM after yourself without reloading the whole page.

alexykot commented 8 years ago

Edit - correct unloading is critical beyond React also, because if you render it just anywhere on a dynamic page that has some parts shown or hidden - you need to be able to load/unload rendering when needed. Right now even when rendering canvas is invisible it still loads CPU with full-blown 3D rendering task.