Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Splat Sort Worker Algorithm Updates #9

Open
SimonDaKappa opened this issue Sep 10, 2024 · 0 comments
Open

Splat Sort Worker Algorithm Updates #9

SimonDaKappa opened this issue Sep 10, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@SimonDaKappa
Copy link
Collaborator

The current splat renderer has a background thread that sorts all splats based on depth. This is a single cpu sort, and runs at about 5-10fps compared to the >60fps on the main render thread. For most cases, this is fine, as the user isnt moving around a scene like they are in cod, but it would still be nice to get a better algorithm. Inria uses a GPU Bitonic sort for their depth buffers, and we could try to use WebGPU to do the same, but that seems to be an issue a lot of adjacent renderers online have ran into. We could also investigate into float-based radix sorts, as most of the depths arent super large.

See:
https://www.codercorner.com/RadixSortRevisited.htm
http://stereopsis.com/radix.html
https://webgpu.github.io/webgpu-samples/?sample=bitonicSort
https://github.com/hjlld/webgpu-bitonic-sort
https://gwebgpu.antv.vision/en/examples/gpgpu/basic/bitonicSort

This is pretty low priority, but it'd be cool to improve nonetheless

@SimonDaKappa SimonDaKappa added the enhancement New feature or request label Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant