+68% rendered FPS with per-pipeline profiling on RTX 4070 SUPER #4904
No reviewers
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!4904
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4903"
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?
@adraenor on GitHub · 2026-12-01 13:17 UTC · original
adraenor:pr/batch-pipeline-timestamps→main· +153 −4 · 3 files · 1 commits · closed without mergingIn-game results on an RTX 4070 SUPER
With per-pipeline GPU timing enabled, batching timestamp readbacks raised the rendered frame rate from 8.30 to 13.95 FPS (+67.9%) in the tested scene. With the default settings both builds averaged about 14 FPS.
These are eight separate launches, with two comparisons in opposite orders per setting. Each restored the same save and a copy of the same preloaded pipeline library. Both builds used hardware DXR, DLSS Quality, 2560 × 1440 output, and 2× frame generation on driver 616.92. The engine's frame log counts rendered frames before generation. The car was stationary in the same outdoor scene, with changing traffic and lighting.
Each measurement covers 60 seconds after at least 30 seconds in the scene without reported compilation activity. The initial warm-up launches were excluded. Runtime logs show zero shader translations or driver compilation events during all eight measured windows. With timing on, the 95th-percentile frame times were 221 and 196 ms on main, and 72 and 73 ms with the patch.
What it changes
When per-pipeline profiling is enabled, each binding currently inserts a separate GPU-to-readback resolve for its two timestamps. A command list now records both timestamps in their original positions and resolves contiguous pairs together at close. For 512 consecutive bindings this reduces 512 resolves to one. Gaps owned by other lists and the end of the ring split the ranges. Resetting a discarded recording clears its ranges.
Enable the profiler with
--set VICTORY_CARD_METER_PIPELINES=1while the card meter is on. Grouped readback applies automatically. Per-pipeline profiling stays off by default. Normal play already avoids these per-binding queries.How it was tested
9372551eon an NVIDIA GeForce RTX 4070 SUPER. The synthetic D3D12 test uses a direct queue and 512 timestamp pairs per command list, checks every pair after fence completion, and alternates the immediate and grouped implementations.VICTORY_CARD_METER_PIPELINES=1and runcargo test --release --locked -p victory-gpu --lib compare_pipeline_timestamp_readbacks -- --ignored --nocapture --test-threads=1.cargo test --locked -p victory-gpupassed, including 1,096 library tests (67 ignored). The separate release hardware test exercises the ignored comparison. The repository asset-policy check passed on 464 files.Checked for overlap
AI contribution by GPT-6.2-Astra high for adraenor.
@tyr0nsur on GitHub · 2026-12-01 13:30 UTC · original
Independent Windows run on RTX 4060, driver 621.14, Rust 1.98.1, exact unmodified
9372551e. I rancargo test --release --locked -p victory-gpu --lib cardmeter::tests::compare_pipeline_timestamp_readbacks -- --exact --ignored --nocapture --test-threads=1withVICTORY_CARD_METER_PIPELINES=1, then repeated the same test binary in two fresh processes. All timestamp-order checks passed.These are medians from recording through fence completion for 512 pairs, with per-pipeline timing enabled. The range split/ring wrap unit test also passed.
A separate local test used the production
HostList::used_pipeline,closeandresetpaths. It interleaved two recordings, submitted A first and verified B's readback slots were untouched, then submitted B and checked its pairs. It also discarded a left-open recording, reused the list and confirmed only the new recording wrote its timestamp pair. That test passed as well. This was synthetic D3D12 work, with no game FPS measured.@cloph-dsp on GitHub · 2026-12-01 13:38 UTC · original
Verification (independent, AI-assisted: Hy4 flash). Windows, Rust 1.100.0 (Scoop rust-msvc), MSVC, commit-scoped shallow worktree.
Base
5fabb46eaf6ed8771321787f8871051abde69b9b, head9372551e6eb181a71bfecdca76d8634d7656cb76.git diff --numstat→ README.md 1/1, crates/victory-gpu/src/cardmeter.rs 139/1, crates/victory-gpu/src/host.rs 13/2.Note for the "new test" check:
a_list_is_named_by_the_pipelines_it_bindsalready exists on the base at cardmeter.rs (git grep -F on5fabb46ematches), so this extends the existing test rather than adding one — the new coverage is the batched readback arm.git diff --check "5fabb46e..9372551e"→ no output, exit 0.Result:
running 1 test,test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 1162 filtered out.The test drives the naming logic off plain lists; no device opened, GPU/driver N/A. No game data.
@trustno1-coder on GitHub · 2026-12-01 18:28 UTC · original
Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.
Pull request closed