Quantcast
Channel: Latest Questions by Wrymnn
Viewing all articles
Browse latest Browse all 131

How to free meshes from memory fast?

$
0
0
Hi, I work with chunks created from scratch in my game. - Every time new chunk is created, Meshes are added to memory. - Every time old chunk is removed, Meshes are not removed from memory. This is old problem. The only way how to remove it is via Resources.UnloadUnussedAssets(), this however takes immense amount of time and causes huge lag spikes. **Is there any other way** how to delete meshes from memory? I also tried: - MeshFilter.mesh.clear() - MeshFilder.mesh = null GC.Collect() won`t help since meshes are on C++ side. Is there any other way how to get rid of meshes without unloading all unused assets from game?

Viewing all articles
Browse latest Browse all 131

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>