Why would you need to create vertex buffers at all, except in the beginning when you load your height map?
When you move you just decide for every frame which vertex buffers to use, depending on LoD (and set it with a call to IASetVertexBuffers).
If you can't load all buffers at load time, you should probably, as others have pointed out, let a worker thread carry that out in advance.
Show differencesHistory of post edits
#2SamiHuutoniemi
Posted 27 July 2012 - 07:34 AM
Why would you need to create vertex buffers at all, except in the beginning when you load your height map?
When you move you just decide for every frame which vertex buffers to use, depending on LoD (and set it with a call to IASetVertexBuffers).
When you move you just decide for every frame which vertex buffers to use, depending on LoD (and set it with a call to IASetVertexBuffers).
#1SamiHuutoniemi
Posted 27 July 2012 - 07:33 AM
Why would you need to create vertex buffers at all, except in the beginning when you load your height map?
When you move you just decide for every frame which vertex buffer to use, depending on LoD (and set it with a call to IASetVertexBuffers).
When you move you just decide for every frame which vertex buffer to use, depending on LoD (and set it with a call to IASetVertexBuffers).