VICTORY_PACE brings the presenting thread that keeps it (did nothing without VICTORY_PRESENT_ASIDE) #4700
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4700"
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 mstrmoos on 2026-12-01T02:23:32Z.
What it changes
VICTORY_PACE(from #2201) is kept by the presenting thread ofpresent_aside. That thread runs only withVICTORY_PRESENT_ASIDE=1orVICTORY_PRESENT_QUEUE=1. Asked for alone, the pace did nothing and said nothing: no line of the pace in the log, and frame times the same as without it. I hit this myself: a pass atVICTORY_PACE=autoand=16that I first took to show "the pace doesn't help here" had never paced a frame.With this change, asking for a pace brings the presenting thread with it, and the log says so once:
the present is put aside to its own thread, which keeps the pace (VICTORY_PACE). Nothing changes whenVICTORY_PACEis unset or0, or whenVICTORY_PRESENT_ASIDE/VICTORY_PRESENT_QUEUEare already given. The change is in one place,present_aside::on()(crates/victory-gpu/src/host.rs), which sends a frame's present to that thread.How it was tested
VICTORY_IMAGE_HOLD, the same in every run below).f5c3d243:VICTORY_PACE=autoalone gives no pace line, and the frame times are those of an unpaced run.f5c3d243+ this:VICTORY_PACE=autoalone gives the hand-off line, thenframes are paced ... refreshes=18 refresh_us=1838 auto=true, then the late-frame lines (refreshes=20 late=14 frames=192).What the pace then does depends on headroom, and that's worth saying plainly. On plain main this scene is held by the submitting thread (it worked 33-35 ms a frame), so
autoclimbs to 20 refreshes (36.8 ms) and the spread gets worse:f5c3d243+ this, 90 s eachVICTORY_PACE=autoOn a build with more headroom (main
e1251c31plus #4332, #4206 and #3809's switches; the card is the limit there, and the submitting thread works 21-22 ms), the pace does what #2201 describes. Both runs below hadVICTORY_PRESENT_ASIDE=1set by hand:e1251c31+ picks,VICTORY_PRESENT_ASIDE=1, 90 s eachVICTORY_PACE=auto(held at 17 refreshes, 31.3 ms)VICTORY_PACE=16(29.4 ms, 37 of 192 frames late)So
autois the setting to suggest: a fixed count the card can't keep is worse than none. A note in the docs could say that the pace pays only where the frame has slack.cargo test -p victory-gpu --libpassed: yesChecked for overlap
present_aside::on().Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by IRennie74 on 2026-12-01T06:28:31Z.
This collides with #4635 if both land. #4635 holds a present only when
!present_aside::on(); presents handed to the aside thread are shown as they come. With this change anyVICTORY_PACEvalue turnspresent_aside::on()true, so settingVICTORY_PACEquietly turns off #4635's pace as well. The new log line names the aside thread but not that. One more line there, or in #4635's doc, would make that clear to anyone comparing the two.A data point that fits the bug you found. On a Ryzen 5 5600X with an RTX 3060 (Series S, DLSS Performance, the same scripted walk, two runs per arm),
VICTORY_PACE=autowithoutVICTORY_PRESENT_ASIDEgave 18.4 and 81.8 hitches a minute and 43.2 and 71.0 ms frame-to-frame variability. That is about what we see with no pacing.VICTORY_PACE=7withVICTORY_PRESENT_ASIDE=1gave 5.8 and 7.7 hitches a minute (16.0 and 17.1 fps). We didn't check theautoarm's log for a pace line, so this doesn't prove it never paced, but the spread matches a pace that never ran.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by mstrmoos on 2026-12-01T15:46:29Z.
Good catch, thanks. You're right: with this change any
VICTORY_PACEturns the present aside on, and #4635 holds only presents that aren't put aside, so its pace stops acting. It's one or the other, not both.c350f748says so in the line that's logged when the pace brings the thread ("a pace of presents not put aside does not act"), and inpresent_aside::on's doc.Your 3060 numbers fit the bug as well:
autowithout the aside thread at about the level of no pacing, and 5.8 and 7.7 hitches a minute once the thread was there.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.