GaussianSplats3D icon indicating copy to clipboard operation
GaussianSplats3D copied to clipboard

Max Array Buffer Size (workaround)

Open Skorpinakos opened this issue 1 year ago • 0 comments

Hi, just tried to convert a large scene (~3.4GB, 14M splats) from .ply to .ksplat using the online demo. It did not work (no errors in console, just stuck at loading with no resources used in task manager). Tried Opera & Chrome. Then tried to build and run the conversion locally using the 3 methods outlined in the README.md in section "Creating KSPLAT files". Using the command line method (with the --max-old-space-size=8192 option) i got an error that indicates that an array buffer larger than 2GB was needed and the v8 engine used by both node.js and chromium based browsers does not support that (it is not just a setting, no support at all as of 2025).

However, after some searching around it appears that SpiderMonkey (the engine behind Mozilla Firefox) does support larger array buffer sizes, and when running the demo either locally or online through the firefox browser large scenes can be converted to .ksplat (and then be small enough to be viewed on other browsers).

While this might be a limitation not uniquely relevant to this project maybe a small hint about this workaround for large scene conversions could be mentioned in the "Creating KSPLAT files" section of the README.md.

P.S. Thanks for the awesome library !

Skorpinakos avatar Apr 01 '25 14:04 Skorpinakos