In unity process Mesh.AwakeOnLoad in PlayerLoop takes too much time the first time it…
- User
In unity process Mesh.AwakeOnLoad in PlayerLoop takes too much time the first time it happens in build. In editor it doesn't happen at all. What is the cause of that and how can I fix it
- Assistant
The difference in behavior between the Unity editor and build might be due to different optimizations and settings applied in the build. Here are a few possible reasons and solutions to fix the slow Mesh.AwakeOnLoad in PlayerLoop:
-
Compression: Check if you have mesh compression enabled for your build. Compression can save memory, but it might be causing the Mesh.AwakeOnLoad to take a longer time to process. To disable compression or change its level, go to the Mesh import settings and adjust the Mesh Compression value.
-