Skip to content

Diligent::DRAW_FLAG_DYNAMIC_RESOURCE_BUFFERS_INTACT #250

Answered by TheMostDiligent
RobertMtx asked this question in Q&A
Discussion options

You must be logged in to vote

As a side note, do you think this non-2D process would be better served with non-dynamic buffers?

Maybe. Hard to tell until you try.

Anyway, based on the performance guide, it sounds like every call to DrawIndexed() may be performing some kind of expensive processing because of dynamic buffer use, even if they are not modified since the last call.

This processing is not very expensive, but adds up.

So my question is - can I keep track of this situation with a single boolean variable?

That sounds reasonable. Take a look at the asteroids sample. It is doing very similar thing.

but make sure I call some other specific function right before rendering modified dynamic buffer data?

No, …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@RobertMtx
Comment options

@TheMostDiligent
Comment options

Answer selected by RobertMtx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants