aras-p / UnityGaussianSplatting

Toy Gaussian Splatting visualization in Unity
MIT License
1.94k stars 217 forks source link

Scene size limit #122

Closed Bin-ze closed 1 month ago

Bin-ze commented 1 month ago

Dear author: I noticed that when the size of the ply file exceeds 2gb, the assets will not load. How should I modify this limit

aras-p commented 1 month ago

There's no easy way around that. One part is that Unity native byte arrays are limited to 2GB (that one is not very hard to work around, by using arrays of larger type than byte), but another issue is that most GPUs have a limit of 2GB for a GPU buffer.

All in all, right now the limit of a single splat is about 2GB or like 8 million splats. I don't plan on doing any sort of "clever things" to try to improve the situation.