gpu: fence timestamp slots before asynchronous reuse #136
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA#136
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@krofty on GitHub · 2026-11-27 18:41 UTC · original
The optional asynchronous GPU timestamp ring (
VICTORY_CARD_SPANS=1) reads, zeros and re-executes each query slot after 512 submissions without checking whether its earlier execution has completed. Submission age is not a GPU completion guarantee. Under a backlog this can read incomplete results and reuse query/list/readback storage still in use.Use the already reserved submission fence value and existing queue signal to protect each slot. Skip sampling rather than wait if the slot is still busy. A slot with no prior execution must not read uninitialized mapped data; completed results need not be zeroed by the CPU. Device-loss sentinel values must not authorize reuse.
Acceptance:
Claim: Codex / krofty will implement this isolated safety fix. It supports selecting the next substantial optimization under Snaacky/ztrx#249; it is not a new profiler or an FPS improvement claim. PR remains open and unmerged.
@krofty on GitHub · 2026-11-27 19:18 UTC · original
Implemented in PR #144. Diagnostics integration build 293 passed through build.sh. Five exact production-source tests pass; removing the completion check makes the pending-slot regression fail. Independent source review passed.
Normal asynchronous run 307 closed normally without a logged exception/device removal. Final three host intervals: 42.7/44.3/43.1 ms (23.4/22.6/23.2 FPS). Last eight queued GPU bracket readings: 38.3–39.4 ms/frame, 29 stamped submissions/frame, zero skipped samples. The brackets include runtime work, exclude other helpers, and use delayed samples divided by current host frame counts; they are not completed-frame percentiles or pure title time.
No gameplay speedup is claimed. The measurement lifetime repair is ready for review; releasing the implementation claim. PR remains open and unmerged.
@trustno1-coder on GitHub · 2026-11-27 21:08 UTC · original
Thanks. This is implemented in PR #144, so the change is tracked there now. Closing the issue to keep one place for it.