aresrpg / aresrpg-engine

Voxel rendering engine
1 stars 0 forks source link

Avoid game freeze during patch generation #12

Closed piellardj closed 2 months ago

piellardj commented 6 months ago

Currently, each time a patch is computed (because the player moved for example), the game freezes during a few dozens milliseconds. This is not a good user experience.

In order to avoid those freezes, try deegating the patch generation to another thread, so that the game remains smooth.

piellardj commented 2 months ago

Fixed since the mesh generation is now in a separate thread, and the voxels map generation too.