Two values of a switch compared in one launch (VICTORY_FLIP) #254
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!254
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-254"
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?
@TG0000 on GitHub · 2026-11-24 23:01 UTC · original
TG0000:tools/flip→main· +87 −4 · 5 files · 1 commits · openLaunch-to-launch differences (scene timing, driver cache, what else the PC does) were as large as most gains we tried to measure.
VICTORY_FLIP=3compares two values of a switch inside one launch: every second of frames is one window, one log line each, and the value changes every three windows in the order ABBA, so a drift of the scene cancels. The first window after a change is marked to be left out.A switch takes part when it is read through
flip::Pair, for exampleVICTORY_HEAP_TEXTURES_MS="250|20"orVICTORY_TEXTURE_NO_WAIT="0|1";VICTORY_HEAP_TEXTURES_MSis new here and sets the time a frame may spend on textures picked by index (it comes before main'sVICTORY_TEXTURE_STAGE_MS; 250 ms without either, as before). Nothing changes without these variables.Limits: not for shader translation switches, and a switch that leaves something behind for seconds (a queue, a cache) reaches into the other value's first windows. Medians per block work better than means: a single one-second stall decided our first table.
Example (RX 6800, one launch): the 20 ms budget took the heap pass from 275 to 36 ms and the frame from 402 to 316 ms, but far fewer textures were uploaded and faces went black, so we do not propose that value.
One unit test for the order. Tests on this head (
b56a86f, ona253706, one thread, RX 6800 and WARP): victory-gpu 169 passed, 1 failed; victory-shader 215 passed. The failure iswarp_budget_saturates_without_wraparound_and_preserves_draw_fields, which also failed 2 of 6 times on unchangedf85101bhere (#847 and #849 are about it). Clippy with-D warningsfor the Windows target (both feature sets), with #841's patch on top: one error,shadow.rs(is_multiple_of), the same on unchangeda253706. This head has not been run in a game; the same code on7b0f736has, five times, and adapted tof85101bin a combined build.One warning from that: do not flip switches that change the card's queues. One launch here that flipped seven switches together every 4 s, an asynchronous present of ours among them, lost the device (0x887A0007); the cause is not isolated.
AI-assisted.
🤖 Generated with Claude Code
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.