Jump to content

View more

Image of the Day

The night is still, but the invasion brings chaos. #screenshotsaturday #hanako #indiegame #gameart #ue4 #samurai https://t.co/cgILXuokoS
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Hardware instancing - dynamically add/remove num of instance

4: Adsense

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   

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.

#2 kauna   Members   

2922
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   

1491
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?

New game in progress: Project SeedWorld

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.