I'm currently working on a Minecraft clone for a university project and I'm having some trouble loading a lot of chunks at the same time without reducing performances.
What I'm currently doing is:
- Creating the VAO
- Creating the VBOs
- Buffering the data in the VBOs
- Rendering them (that isn't causing any lag)
- Destroying the VAO and VBOs when the chunk is no longer needed
I tried to look at other solved questions but they were too specific or too vague, or maybe I'm just dumb.
The chunks are made of 16x16x16 blocks and its VBOs contain only the vertices of the visible blocks (like Minecraft's doing).
I'm looking for a better way(in terms of speed and performance) to load them.