Skip to content

0051: review fixes from NRI PR #333 - #66

Merged
Nullpoint56 merged 3 commits into
masterfrom
0051-review-fixes
Dec 2, 2026
Merged

Nullpoint56 merged 3 commits into
masterfrom
0051-review-fixes

Conversation

@Nullpoint56

Copy link
Copy Markdown
Owner

Brings our patch 0051 in line with the upstream PR (NVIDIA-RTX/NRI#333) after its Codex review. All three fixes are re-cut on v192. No release.

  • D3D12, disjoint statistics: a disjoint frame-statistics sample now also resets the measured refresh cycle.
  • Vulkan, calibrated timestamps: the functions are loaded by their KHR names when only VK_KHR_calibrated_timestamps is enabled.
  • D3D12, concurrent presents: with PRESENT_TIMING, Present, its present count and the mapping update share one lock, so two threads presenting can't swap counts. GetPresentTimings still never waits.

Verified on 1d0f48d:

  • Windows, both backends: 726 tests, 0 failed.
  • WSL: 725 tests, 0 failed.
  • Lint and zero-alloc clean, check-docs clean.
  • The patch set applies in order, 0051 applies alone, and every patch passes the reverse check.
  • Coverage regenerated at 41bceb0.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com

Nullpoint56 and others added 3 commits December 2, 2026 01:09
Codex on the upstream PR: a disjoint D3D12 frame-statistics sample now also resets the measured
refresh cycle (it kept the previous mode's period and backdated displayTime with it), and the
calibrated timestamps functions are loaded by their KHR names when only
VK_KHR_calibrated_timestamps is enabled. Same fixes as on next, re-cut on v192. No release.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex on NRI PR #333 (third finding): two threads presenting the same D3D12 swap chain could both
record the newer present count. With PRESENT_TIMING a dedicated lock now covers Present,
GetLastPresentCount and the mapping update; GetPresentTimings still takes only the short mapping
lock. Same fix as on next, re-cut on v192. No release.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Nullpoint56
Nullpoint56 merged commit c3ff817 into master Dec 2, 2026
12 checks passed
@Nullpoint56
Nullpoint56 deleted the 0051-review-fixes branch December 2, 2026 00:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant