Removed unnecessary viewTransform Calculations in the wasm sort (This wont improve most cases since the value is cached, but in some scenarios it'll help a little bit)
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!).
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!).