• 3D
  • GridMap Collision performance

Hello, I am creating a clone of minecraft. For that way I add some voxels from a meshlibrary to a gridmap. I have added a collision box to each voxel but the performance are terrible when I load a chunk I have terrible lags ! I find it strange because I would have though that using gridmap would boost performance !

I have launched the profiler and it seems that most of the time is used by Idle Time. I don't understand what it is though...

From what I remember, Idle time is where the CPU/GPU (I don't remember which) is doing nothing and waiting for the next frame to pass. I'm not sure why you are getting such massive spikes though.

Use the Godot voxel module if you want to create a voxel game, not GridMap. GridMaps aren't designed to handle large voxel-like worlds.