Log the swap chain configuration and allow an explicit sync interval #1074
No reviewers
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/fxceless--victory-fork!1074
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@superboynick on GitHub · 2026-11-25 18:33 UTC · original
superboynick:feat/present-config→main· +69 −1 · 1 files · 1 commits · openFlicker 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.
@superboynick on GitHub · 2026-11-25 20:24 UTC · original
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
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.