huggingface / gsplat.js

JavaScript Gaussian Splatting library.
MIT License
1.26k stars 77 forks source link

Firefox Memory leak and Inversion Fix #80

Closed TravisThomp closed 3 months ago

TravisThomp commented 3 months ago

About The Memory Leak

The inversion was caused by the memory leak, not from the sort worker lagging behind. The memory leak was due to rapid recreation of the sortData arrays each time the splatData was changed.

Assuming this was caused by FireFox mishandling Garbage Collection in Workers.

Although the inversion might happen with massive splat movement still, there is no getting around cpu depth sorting with webgl2 (learned that the hard way... can't wait for webgpu!).