I am currently working on my first marching cubes algorithm for terrain generation which works fine so far.
I had in mind to update only a few voxels of the terrain each frame so I would also need to update parts of the terrain each frame and send the changed vertices to my VBO.
I had in mind to use
to only update certain parts of the mesh. The problem is that the areas that change are nor necessarily stored next to each other in the Array so I would have to call glBufferSubData(); multiple times for each part of the terrain that changed. I am not even sure that this would be possible so what would be the most efficient way of updating only the parts that changed in my VBO? I also tried to upload all the Vertices to the GPU each frame but that is really slow and not what I want.
Any Ideas and Hints welcome, thanks!