I'm working on a minecraft-like game, and I'm wondering about an efficient way to generate the chunks while the player is walking. Especially, I would like to draw the chunk that the player is seeing before the one which are behind him.
I'm currently planning to make a thread pool, where each region is asynchreonously generated by a different thread. Is there a way to efficiently sort the tasks using an algorithm such as the frustum culling ?