microsoft / microsoft/DirectX-Graphics-Samples

ResolveQueryData only have 2 items

Open
#839 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question sdklayers
Dominant language
C++
Stars
6.8k
Forks
2.2k
PR merge metrics
No merged PRs in 30d

Description

When running in Debug mode, the following warning is created -
D3D12 ERROR: ID3D12CommandQueue::ExecuteCommandLists: Cannot Resolve query that has never been performed for Index [4-15] in QueryHeap (0x0000019A4434EB90:'GPUTimerBuffer') in command list (0x0000019A44422710:'m_commandLists[2]'). [ EXECUTION ERROR #1319: RESOLVE_QUERY_INVALID_QUERY_STATE]
In GPUTimer.cpp line 82 ResolveQueryData should have the range of SceneEnums::Timestamp::PostprocessPass (2) and SceneEnums::Timestamp::PostprocessPass + 1 (3). This is from GPUTimer.cpp line 119 and 130.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in GPUTimer.cpp, checking ResolveQueryData at line 82 and the timestamp uses at lines 119 and 130. Reproduce the warning in Debug mode and compare the query range with SceneEnums::Timestamp::PostprocessPass. Done means the invalid query warning no longer occurs for this range.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
computer-graphics
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.