Title memory by address: per-frame timings on its log line (log only) #1468
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1468"
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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by tupacfan04 on 2026-11-28T20:22:19Z.
What
Log only. The existing
title memory by address:line (about every ten seconds) keeps its text and gains a tail with per-frame timings:memory::ready, lock wait includedtry_lockfinds the lock held, thenlock()as beforeMemory::anotherpast its once-a-frame refusal,Memory::bring_up, and the deferred closure at submissionNumbers are kept in static atomics and swapped to zero when the line is written. No control flow changes, no new switch. One file,
crates/victory-gpu/src/memory.rs(+97 −3).Why
With ray tracing on, nothing in the log said how much of the submitting thread's frame goes to title memory by address. This line does, so the ray tracing PRs that touch this path (#971, #1062, #1046) can be judged with a number from any tester's log.
Measured
RTX 5070 12 GB (driver 621.40), i9-14900F, 32 GB, Windows 11. Series X, 2560x1440, DLSS Quality (model K), frame generation 2x. Unattended 6-minute runs on one walking route, built from source.
readyper frameVICTORY_BVH_BUILDER=1VICTORY_BVH_BUILDER=1(next run)So on this PC roughly 15–24 ms of the ray tracing frame is spent in
memory::ready, and 3–7 ms of that is waiting for the memory lock. The two clock reads per call are not a visible cost at a few hundred calls a frame.The runs were made on my test branch (main
63b902fplus local off-by-default switches) carrying this same commit; this PR is that commit alone, rebased on main923e38c.Tests
memory::tests::timings_are_taken_oncecargo test --release -p victory-gpu --libon this branch: 551 passed, 0 failed, 43 ignoredwatch::tests::what_is_put_in_beside_the_guards_is_told_at_every_viewfail once; it then passed three times alone and in the next full run. This PR does not touchwatch.rs. Plain main923e38cpassed twice (550 passed) in my runs, so I could not reproduce it there.Checked for overlap
cargo testpassed for the crate it touches: yes🤖 Generated with Claude Code