CesiumGS / cesium

An open-source JavaScript library for world-class 3D globes and maps :earth_americas:
https://cesium.com/cesiumjs/
Apache License 2.0
13.02k stars 3.51k forks source link

Trim subtree of 3dtiles #10543

Closed jiangheng90 closed 2 years ago

jiangheng90 commented 2 years ago

When I load large scale of 3dtiles, the memory used by tileset will be bigger and bigger, cesium will release content, but cannot release the tree node. When I load tileset which have about 70Gb size and about 2 million tile will finally cause chrome out of memory and shut down. Do I have a proper way to trim tileset?

ggetz commented 2 years ago

Hi @jiangheng90, how was your tileset generated? And would you be able to provide a link to it for testing?

jiangheng90 commented 2 years ago

Hi @jiangheng90, how was your tileset generated? And would you be able to provide a link to it for testing?

our tileset source is osgb. Most of our customer’s data is osgb, and they are much larger than this but all of these data are similar.They have Huge quantity of tiles,but each tile is small. Our test tileset is generated by tool we developed to convert osgb to 3dtiles. It keeps the structure of osgb.

test tileset is deployed on a private server. So I can not share it.I am not sure if I can make a similar test data to show you this problem.

In the next few days my work will be fix this problem. And when I finish I can make a pull request show u my plan of trim tileset. I will find a data you can see the effects on it. So we can discuss wether this way is good :p

jiangheng90 commented 2 years ago

@ggetz I have seen assets of Photogrammetry in ION, the number of tiles are very small. memory usage of tileset is not big.So I think optimize data decrease tiles rather than trim tile in frontend may be a good idea .