Ray tracing on by default (368967f): the structure builder adds a start-up phase of several minutes and a settled cost that varies between runs of the same scene (RTX 4070 SUPER 12 GB) #1521
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?
Imported from fxceless/victory-fork. Originally posted by HyperEndgame on 2026-11-28T19:36:28Z.
Measurements of main at
368967fwith the structure builder on and off, on one PC: RTX 4070 SUPER 12 GB, Ryzen 7 7700X, 32 GB RAM, Windows 11. Diagnostics build, started throughvictory play(its own settings,--dlss off). The only switch between runs is--set VICTORY_BVH_BUILDER=0. Every run is an unattended start into the first room after the opening cutscene, and the camera stays on the same view. Frame times are the median ofVICTORY_TIMER_LOG=1's 5-second means, after the first 120 s.Frame times
VICTORY_GPU_TIMING=1(Series S), builder on against off: 107 ms against 87 ms. Timing waits on every submission, which is why builder off rises from 35 to 87 ms. The card's waits are about 62 ms against 41 ms a frame. Most of the difference is in a 14-list submission group seen only with the builder on: 13-17 ms a frame, with single waits up to 70 ms. That run did not enter a slow stretch.memory.rs's "shaders touched pages that had no copy (those accesses read 0 or were dropped)" fires in every builder-on run: a burst when the builder starts, then lines starting at0x10000. The counts differ up to 2x between runs, but they do not move with the slowdown.Next on my side: a builder-off control as long as the slow runs (12 min, to rule out heat or clocks), clocks and throttle reasons in the sampler, and card timing taken only once a slow stretch has begun, to name the programs that grow. If anyone sees the same fast/slow split on another card, the frame account line from both stretches would help.
Imported from fxceless/victory-fork. Originally posted by HyperEndgame on 2026-11-28T20:23:38Z.
The start-up phase above is mostly pipelines being compiled again at every start.
9e90746fixed that ("static samplers take their places in the driver's table in one kept order"), but368967fdropped it:pipeline/sampler_order.rsis not in main's tree, and the only thing left in its place is the skip-the-library workaround inlibrary.rs. Was that drop intended?During the builder-on start-up on
368967f(Series S, borderless):VICTORY_PIPELINE_WAIT_MS). The process uses 3.2-5.7 s of CPU a frame across all threads, against about 0.34 s once settled.With
9e90746cherry-picked onto368967f(it applies cleanly apart from the README), on the same machine and settings, builder on, 8-minute runs:slow_this_runnew_static_samplersFor comparison, the same start on
368967fwithout the fix: 500 ms of waiting for about 3 minutes, about 210 s in the world before frames settle, then 42 ms. Five builder-on runs without the fix all spent about 3.5 to 4 minutes in the world at 265-640 ms a frame, each with the pipeline library loaded from the run before. Builder off settles at 35-36 ms.The split between fast and slow stretches in the settled phase is a separate question. There was no slow stretch in these two runs, or in a 12-minute run without the fix. These runs were only 8 minutes long, though, and in the earlier run with a slow stretch it began about 8 minutes in, so they do not show whether the fix affects it.