Closed cokicm closed 1 year ago
_renderer created at line 106 is not destroyed. On creating multiple PixiOverlays, video memory allocated at this place leaks.
If the field is destroyed by calling _renderer.destroy(), GPU memory is freed.
Probably PixiOverlay should have its own destroy() method that should destroy _renderer and possibly _auxRenderer as well.
Thanks for reporting. I will fix this but i need some time to think about it.
It has taken more time than expected but it is included in leaflet-pixi-overlay@1.9.3.
_renderer created at line 106 is not destroyed. On creating multiple PixiOverlays, video memory allocated at this place leaks.
If the field is destroyed by calling _renderer.destroy(), GPU memory is freed.
Probably PixiOverlay should have its own destroy() method that should destroy _renderer and possibly _auxRenderer as well.