I am working since one year on a CAD Viewer and I am facing a problem in Unity. Some CAD models has a size of 500Mo to 2Go.
Those models load thousands of mesh renderer in the scene dynamically at runtime. This create a memory out of bounds error.
In the profiler it cost more than 8Go of memory.
I use the following Unity Version: 2019.4.7f1 (LTS) and build the app as WebGL
I need to have a unique draw call for each object to change their colors in our app and select them to get their name this is why there is so many mesh renderer.
Does someone have a solution to decrease the memory cost of those elements? Or may be have another solution about those draw calls.
I already tried to do an UpdateMeshData(true);
question from:
https://stackoverflow.com/questions/65898884/dynamic-meshes-create-a-memory-out-of-bounds-in-unity-webgl-in-a-cad-project 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…