Direct frame generation: generated and real frames go out back to back, about 40% never reach the screen #632
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/lobomfz--VIctory-xmem#632
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?
@danfq on GitHub · 2026-12-05 21:15 UTC · original
Summary. With
VICTORY_FIDELITYFX_FRAMEGEN_DIRECT=1, the generated frame and the real frame often go out a few milliseconds apart, followed by a long gap. About 40% of presents are replaced before the screen shows them, so the screen changes at 16 to 23 fps from 12 to 19 real fps. On the same save,DIRECT=0(AMD's proxy) looked much steadier, and the smearing and ghosting on fast camera turns and while driving were practically gone.Setup. Ryzen 5 5600G, RX 7600 XT 16 GB (RDNA 3), 32 GB RAM, CachyOS (kernel 7.3.7), mesa-git 27.0.0 devel (
7866a3d), proton-cachyos 11.0-20261015-slr. xmemb581f7e, Series X profile, 1920x1080 output,VICTORY_FSR_4K=quality(FSR 4.1.2, 1280x720),VICTORY_FIDELITYFX_FRAMEGEN=1(built-in 3.1.6 generator), ray tracing on,VICTORY_WARM=1.How it was measured.
VICTORY_PRESENT_TIMING=1, 60 s windows, each run idle for 2 minutes and then driving for 2 minutes. Times between presents come frominterval_usin thepresent timinglines, and what the screen showed fromdisplayedanddisplay_interval_qpc(the swap chain's statistics).Direct path, one 60 s window (idle, about 5000 draws):
realpresentgenpresentA stretch of consecutive presents (kind, ms since the previous present):
In that window the screen changed 1192 times for 1996 presents: 635 changes covered one present, 308 covered two and 249 covered three.
Over the whole run (6 in-world windows):
Proxy path (
DIRECT=0) on the same save. The swap chain statistics can't time the proxy's own generated presents (each logged present moves the count by exactly 2), so there is no on-screen number to compare. Real frames: 12.5 fps in a heavier stretch (about 5800 draws against 4800), and 19 frames per minute over twice the median, against 42 with the direct path. By eye: much steadier, with the smearing and ghosting practically gone, at a lower real frame rate.Where it may come from.
DIRECT_SYNC_INTERVALis 0 incrates/victory-gpu/src/host.rs("Pacing comes from the present's place in the stream"), and the real frame is presented within the next frame's submissions. When those submissions land shortly after the generated frame's present, both go out back to back, the compositor shows only the later one and the generated frame is lost. Nothing spaces the two by half a frame interval.Caveats.
ML frame generation (
VICTORY_FIDELITYFX_FRAMEGEN=4) always uses the direct path, so its pacing matters there too.