ebeaufay / threedtiles

3DTiles viewer for three.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Very high memory usage

wangdemon opened this issue · comments

The computer's memory usage is high and rising.

The testing model file

output.002.zip
output.003.zip
output.004.zip
output.005.zip
output.006.zip
output.007.zip
output.008.zip
output.001.zip

download model files, and uzip
2

1

video.mp4

Hi @wangdemon ,

There are several possible causes, the first thing you can try is to lower the geometric error multiplier.

Then, you need to check if the 3DTiles structure is optimal for streaming. Individual tiles should be around 500Kb and best is to have a tree structure like a bi-tree or octree.

Can you show me the structure inside the LOD folders?

Furthermore, you set the TileLoader maxCachedItems at 1000. If your tiles are big, this may be too much. Try to set it at a low number (even 0) to see if that fixes the issue

Thank you very much, When I change the geometric error multiplier to 0.01, the memory is really much less.

But the maxCachedItems value, It seems to have no effect on memory.

Watch the video below:

Video_20221104093833.mp4

I think the memory is still a little large.

The model has been uploaded, you can also test it

I'm unable to open the zips, they are corrupt on my side.

So first I see your tiles don't have an optimal structure because level 0 is 30 mb and level 5 is 27 mb. This indicates that the simplification is not sufficient (mesh and/or texture)

You have the same amount of files in each LOD meaning you don't split the meshes in a bi-tree or octree between levels.

For memory, open the developer tools F12 and go to performance and memory tab. The way you check memory usage, you look at chrome memory management, not the page itself

OK, thank you very much for your help.