Log the swap chain configuration and allow an explicit sync interval #1072
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1074"
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 superboynick on 2026-11-25T18:33:57Z.
Flicker and tearing reports are hard to act on without knowing how the swap chain was built. This logs the configuration once at creation, and again whenever the present arguments change, under
VICTORY_LOG_PRESENT=1: swap effect, buffer count, format, size, sample description, chain flags with tearing and waitable-object decoded, scaling and alpha mode, plus the sync interval and flags actually passed to Present.Example from a machine that reports flicker in the prologue:
SwapEffect=FLIP_DISCARD(4) BufferCount=2 Format=28 Width=3840 Height=2160 SwapChainFlags=0x0 ALLOW_TEARING=false FRAME_LATENCY_WAITABLE_OBJECT=false Present SyncInterval=0 Flags=0x0That already answers one question in those threads: the title presents without waiting for vblank, on a two-buffer flip chain, with tearing not permitted. Whether that is behind the flicker is testable now -
VICTORY_PRESENT_SYNC=npasses an explicit interval through to Present for exactly that comparison. Default behaviour is unchanged: interval zero, no flag edits, nothing read unless the variables are set.Measured with the switch on: interval 1 and 2 both hold the same ~30 fps this build caps at, so I cannot claim the interval fixes flicker. What I can claim is that the question is now answerable on any machine, with the numbers in the log.
Off by default; the present path is byte-identical when the variables are unset.
Imported from fxceless/victory-fork. Originally posted by superboynick on 2026-11-25T20:24:11Z.
Same check for this one, since "off by default" is the claim that matters here.
Four lines total when enabled - effect and buffer count, chain flags, latency and window state, present arguments - plus one line saying the sync interval was overridden. With nothing set, none of it appears and the run is unchanged.
The four lines on this machine, for reference:
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.