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

Use of occlusion queries around individual draws results in one ResolveQueryData per query #17

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

D3D11 gave no explicit control over batching query resolve operations, so it appears that 'EndQuery' is the place that ResolveQueryData operations are inserted.

The D3D11 pattern of:

  1. Begin(query)
  2. Draw
  3. End(query)

For tasks such as Occlusion Culling results in this pattern in D3D12:

  1. BeginQuery
  2. Draw
  3. EndQuery
  4. ResolveQueryData

This appears to inhibit draw-level parallelism as a ResolveQueryData operation sits between every draw. Some means (waves hands) of batching up Resolves into one operation before first use would help immeasurably!

@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