Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UpdateSubresource (Constant Buffer) + Draw pattern inhibits GPU parallelism #16

Open
ajmiles opened this issue Jun 4, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@ajmiles
Copy link

ajmiles commented Jun 4, 2021

A common D3D11 pattern was to issue pairs of UpdateSubresource + Draw, where constant buffers were updated just-in-time before each draw.

This pattern, when translated to D3D12 is:

  1. ResourceBarrier (old state -> COPY_DEST)
  2. CopyBufferRegion
  3. ResourceBarrier (COPY_DEST -> VERTEX_AND_CONSTANT_BUFFER)
  4. Draw

That pattern means no draw overlaps with any other.

Some sort of 'rename' operation could occur, similar to the MAP_DISCARD behaviour from D3D11 to better allow GPU parallelism.

@jenatali jenatali added the enhancement New feature or request label Jun 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants