roland
November 17, 2021, 7:14pm
1
Hi!
I’m trying to visualize a bunch of particles. One million Ok, the bunch was a joke. But the browser breaks “Aw, Snap!” at around 400k. Memory usage by chrome is at “only” 2.5 GB at this point. Is there anything I can do with this?
Thank you!
EDIT: Maybe I could create more SPS instances…
sebavan
November 17, 2021, 7:16pm
2
Not really, the browser limit per tab is not smthg you can change or influence
roland
November 17, 2021, 7:16pm
3
Do you think it’s an out of memory issue?
roland
November 17, 2021, 7:24pm
5
The latest version of Google Chrome (desktop 64-bit version), ver 80.0, can handle up to 4GB of memory per tab as of April 2020.
So it should go higher. And the 2,5 was per Chrome instance.
sebavan
November 17, 2021, 7:28pm
6
check if you have 64 bit installed mine keeps switching between 32 and 64 for reasons…
roland
November 17, 2021, 7:34pm
7
Version 95.0.4638.69 (Official Build) (64-bit)
I am going to try out something
1 Like
roland
November 17, 2021, 7:41pm
8
Ok, so this is working, 800.000 particles but in separate systems. This opens up new questions, whether it’s really a memory issue?
const spsCount = 80
for (let i = 0; i < spsCount; i++) {
const sps = new BABYLON.SolidParticleSystem("sp" + i, scene)
sps.addShape(box, 10000)
sps.buildMesh()
}
sebavan
November 17, 2021, 7:42pm
9
might be a over the limit for one of the arrays or buffers only then
roland
November 17, 2021, 7:44pm
10
NO no no… I have a lot of code already written around SPS… and it seems I need to switch back to my beloved thin instances
EDIT: or lower my expectations
1 Like
roland
November 17, 2021, 8:53pm
11
It seems you are right!
window.performance.memory.jsHeapSizeLimit
give me only 2 Gigs
I’ve already checked the PointCloudSystem limit and it breaks around 3,4 mil of points but the absolute FPS is still at incredible:
2 Likes