Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
539 views
in Technique[技术] by (71.8m points)

unity3d - Dynamic meshes create a memory out of bounds in Unity WebGL in a CAD project

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...