I’m using a quad-tree based LOD algorithm to draw terrains, but now I’ve started wondering what would be the best way to send the geometry to the gfx card.
If the terrain is of size 513x513 and I need both texture coordinates and vertices. That’s 5 floats or 20 bytes giving a total of approx 5MB geometry data. However due to the LOD, less than half of the vertices are drawn, so what would be the best way of doing this:
- Should I keep all the vertices in one large vertex array (and the texture coordinates in another) and then only generate indices in the LOD process, or
- Should I generate a new array each frame containing only the used vertices?
Thanks.
Anders