Skip to content

Conversation

mrxz
Copy link
Collaborator

@mrxz mrxz commented Aug 15, 2025

SOGS files are loaded from images with 8-bit channels. This means that for many of the properties there are only 256 distinct values. Since numSplats >> 256, it can be beneficial to (pre)compute a lookup table and use it. This PR implements lookup tables for the scales, quaternions, RGBA and spherical harmonics properties.

Testing with the sutro.zip the parsing is a modest ≈10% faster with these changes.

@mrxz mrxz changed the title Pre-compue lookup tables when parsing SOGS files Pre-compute lookup tables when parsing SOGS files Aug 16, 2025
@dmarcos
Copy link
Contributor

dmarcos commented Sep 15, 2025

Thank you!

@dmarcos dmarcos merged commit d53bea9 into sparkjsdev:main Sep 15, 2025
2 checks passed
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.

2 participants