globe.gl icon indicating copy to clipboard operation
globe.gl copied to clipboard

Stop rendering

Open gatelli opened this issue 4 years ago • 2 comments

Hi ! Thanks for your function !

Question : I can't stop rendering the animation. I have several pages in app where I can run some webgl animations with globeJS, but switching from page to another the processes are running slower and slower as I think animations are not paused or stopped. Is there a way to programmatically stop (kill or pause) a rendering ? Thanks for your help...

gatelli avatar Mar 31 '20 16:03 gatelli

I think this is the same thing as #15 . We need an API to free/release all old Globe data

lslzl3000 avatar Jul 17 '20 14:07 lslzl3000

@gatelli @lslzl3000 You can instruct the component to stop its rendering cycle by calling .pauseAnimation(). This can be reverted using .resumeAnimation().

vasturiano avatar Jul 17 '20 16:07 vasturiano