Hardware instancing - dynamically add/remove num of instance
Is there any way better than flush the instance buffer, per-instance data, and recreate them? I haven't tried this brute force approach yet, so I don't know how much fps it'll reduce.
You may refill the dynamic vertex buffer / dynamic constant buffer / buffer object when ever you'll need to change the per instance data.
You may even use a single dynamic buffer to pass instancing data. You may keep the data in system RAM and stream it to the buffers when drawing.
Cheers!
You may even use a single dynamic buffer to pass instancing data. You may keep the data in system RAM and stream it to the buffers when drawing.
Cheers!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement