Jump to content

  • Log In with Google      Sign In   
  • Create Account


Hardware instancing - dynamically add/remove num of instance


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 Knight52   Members   -  Reputation: 171

Like
0Likes
Like

Posted 25 August 2012 - 09:32 AM

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.

Sponsor:

#2 kauna   Crossbones+   -  Reputation: 2338

Like
0Likes
Like

Posted 25 August 2012 - 11:45 AM

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!

#3 CC Ricers   Members   -  Reputation: 623

Like
0Likes
Like

Posted 27 August 2012 - 09:43 AM

Do you have a maximum number of instances you know that will be displayed at a time?
My development blog: Electronic Meteor




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS