- Home /
Question by
flapperkewiet · Jun 16, 2016 at 06:07 AM ·
voxelmemory managementmemory usage
Reducing memory in voxel game
Hello, I' making a voxel game, but have some memory issues. After generating ~500 chunks the memory usage is already 0.8-1 gb according to the build-in memory profiler. Every chunk is 32x32x32. Every chunk has a chunkscript with a 3d byte array for storing the block IDS and the chunk position and there is also a meshbuilder script attached for building the mesh.
Is there anyway i can reduce the memory usage?
Here are some pictures of the profiler.
It aren't the meshes or textures they only use 100 MB.
Any help is appreciated.
memoryusage1.png
(16.0 kB)
memoryusage2.png
(8.8 kB)
Comment