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

Precalc some splat data each frame #6

Merged
merged 3 commits into from
Sep 16, 2023
Merged

Precalc some splat data each frame #6

merged 3 commits into from
Sep 16, 2023

Conversation

aras-p
Copy link
Owner

@aras-p aras-p commented Sep 16, 2023

...instead of computing it over and over again for each vertex of each quad that is being rendered.

This does not help on PC (RTX 3080Ti) much (13.4ms -> 12.6ms), but massively helps on Mac (M1), which had previously regressed in perf due to using all the data chunking & textures (from initial 80ms it had went up to 220ms). But now it's down to 55ms, so yay progress! And a lesson that vastly different GPU architectures have vastly different performance characteristics, who would have thunk.

Downside is that this now needs 40 bytes/splat of extra GPU memory to store the view data. Might be able to get that smaller, maybe.

Instead of computing it for each vertex of the quad we're drawing.
On M1 Mac/Metal gets down from 218ms (increased a lot since
chunks/textures) to 58ms.

Downside is 40 bytes/splat of runtime GPU memory
@aras-p aras-p merged commit 40f5a30 into main Sep 16, 2023
dylanebert pushed a commit to dylanebert/UnityGaussianSplatting that referenced this pull request Oct 13, 2023
Precalc some splat data each frame
@aras-p aras-p deleted the compute-view branch October 17, 2023 11:03
HIHHIYAYAYOO pushed a commit to HIHHIYAYAYOO/UnityGaussianSplatting that referenced this pull request Nov 30, 2023
Precalc some splat data each frame
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant