Hardware instancing - dynamically add/remove num of instance

Started by
1 comment, last by CC Ricers 11 years, 8 months ago
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.
Advertisement
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!
Do you have a maximum number of instances you know that will be displayed at a time?

New game in progress: Project SeedWorld

My development blog: Electronic Meteor

This topic is closed to new replies.

Advertisement