quadjr / aframe-gaussian-splatting

A-Frame component implementation of the 3D Gaussian splat viewer
MIT License
179 stars 31 forks source link

Avoid worker eval #5

Closed hybridherbst closed 1 year ago

hybridherbst commented 1 year ago

To avoid eval()ing the sort function, I moved it into the worker altogether. This simplifies the code but prevents using the sort method from outside the worker, which I don't think is a big problem since it's called every frame (or at least often) anyways.

This PR is based on #4 but should also work on its own.