fix(gpu): include buffer comparisons in GPU timings #3

Manually merged
github merged 1 commit from github-bot/gh-3 into main 2026-11-26 15:34:30 +00:00 AGit
Owner

@⁠jeremygold02 on GitHub · 2026-11-26 14:45 UTC · original
jeremygold02:codex/card-compare-timing → main · +27 −12 · 1 files · 1 commits · merged 2026-11-26 15:33 UTC

Problem

PR #1 put the GPU buffer-comparison list in a separate ExecuteCommandLists call to fix D3D12 error 538. That moved the comparison past the end markers for VICTORY_TIMELINE and VICTORY_CARD_SPANS, so those GPU measurements stopped counting the comparison even though the fence still covered it.

Change

  • Keep the comparison list and any timing end markers in a separate queue call, after the title's lists and before the existing fence signal. The comparison remains the first list in that call, so resource-state decay still occurs at the boundary introduced in #1.
  • Preserve marker placement when there is no comparison list. Keep the timeline start marker in the first synchronous group when VICTORY_GPU_TIMING splits the title's lists.
  • Apply the queue boundary to both the deferred and synchronous submission paths. This adds no queue calls beyond the separate comparison call introduced by #1.

Validation

  • cargo build --offline --locked --target-dir target --jobs 2 --profile diag -p victory --features diagnostics
  • cargo check --offline --locked --target-dir target --jobs 2 -p victory-gpu
  • git diff --check

This follow-up was build-checked on Windows. In-game timing captures and the standalone debug-layer regression fixture are separate verification work.

Thanks to @⁠LucaruluDev for spotting the change in timing coverage in #1.

**@⁠jeremygold02** on GitHub · 2026-11-26 14:45 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3) `jeremygold02:codex/card-compare-timing` → `main` · +27 −12 · 1 files · 1 commits · merged 2026-11-26 15:33 UTC ## Problem PR #1 put the GPU buffer-comparison list in a separate `ExecuteCommandLists` call to fix D3D12 error 538. That moved the comparison past the end markers for `VICTORY_TIMELINE` and `VICTORY_CARD_SPANS`, so those GPU measurements stopped counting the comparison even though the fence still covered it. ## Change - Keep the comparison list and any timing end markers in a separate queue call, after the title's lists and before the existing fence signal. The comparison remains the first list in that call, so resource-state decay still occurs at the boundary introduced in #1. - Preserve marker placement when there is no comparison list. Keep the timeline start marker in the first synchronous group when `VICTORY_GPU_TIMING` splits the title's lists. - Apply the queue boundary to both the deferred and synchronous submission paths. This adds no queue calls beyond the separate comparison call introduced by #1. ## Validation - `cargo build --offline --locked --target-dir target --jobs 2 --profile diag -p victory --features diagnostics` - `cargo check --offline --locked --target-dir target --jobs 2 -p victory-gpu` - `git diff --check` This follow-up was build-checked on Windows. In-game timing captures and the standalone debug-layer regression fixture are separate verification work. Thanks to @⁠LucaruluDev for spotting the change in timing coverage in #1.
Keep diagnostic end markers after the comparison while retaining its separate queue call and the existing fence.

Refs: #1
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 14:54:36 +00:00
github manually merged commit d589bfa081 into main 2026-11-26 15:34:30 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.