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

Chrome crashes (out of memory) when adding > ~100k entities #6081

Closed
greenlaw opened this issue Jan 3, 2018 · 3 comments
Closed

Chrome crashes (out of memory) when adding > ~100k entities #6081

greenlaw opened this issue Jan 3, 2018 · 3 comments

Comments

@greenlaw
Copy link

greenlaw commented Jan 3, 2018

I'm attempting to add a large number of SVGs (>100k) to the map. This works fine when using simple Billboard Primitives, but when using the Entities API, Chrome (63.0.3239.84) crashes. Developer Tools indicates "Paused before potential out-of-memory crash". (IIRC I've had Firefox crash on me before as well, but can't confirm that right now...it seems to be working even with 120k entities)

Working example (using Billboards): https://cesiumjs.org/Cesium/Apps/Sandcastle/?src=Hello%20World.html&label=Showcases&gist=15e289eefc2d71246b7b81f7c1dd3aad

Crashing example (using Entities): https://cesiumjs.org/Cesium/Apps/Sandcastle/?src=Hello%20World.html&label=Showcases&gist=ebe7cb3c20394e45efdd5e47ea226d3a

@vatsalpande
Copy link

were you able to find an answer to this?

@greenlaw
Copy link
Author

greenlaw commented Jul 5, 2018

No, I just abandoned Entities and stuck with Billboards

@hpinkos
Copy link
Contributor

hpinkos commented Jul 5, 2018

Hi @greenlaw, yes unfortunately there is a little more memory overhead when using entities. Using a BillboardCollection directly is probably the way to go when you're adding this many billboards to the scene. Ultimately, I think using 3d-tiles vector tiles will be the recommended solution for adding a large amount of billboards like this. The vector tiles specification is still in progress, but we have a roadmap issue here: CesiumGS/3d-tiles#25

I'm going to close this issue because I don't think there is anything actionable for us at this time. I'm glad you were able to use billboards to solve your problem!

@hpinkos hpinkos closed this as completed Jul 5, 2018
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

No branches or pull requests

3 participants