Killflash, Pt.2: Deals with the remaining rarer tree and scene flickering #42
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/42"
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 ReTerryDavis/ReVIctory. Originally posted by staticman256 on 2026-12-04T10:06:06Z.
Thin lists: lists recorded after a tree culling list wait for it (a row of trees vanishing for one frame)
Human preamble:
The previous PR cleaned up the tree epilepsy simulator. There was another source of flashing caused by what I understand to basically be a race condition in how lists are processed. I tried a global wait, it worked but ended up being a performance disaster. This one ported over from another upstream seems to be both performant and effective, but I really welcome testing feedback for this from others.
AI word salad:
With thin lists on (
VICTORY_THIN=1, whatplay.ps1and the launcher set), a whole row oftrees could go missing for a single frame every few seconds. It is what was left of the
tree flicker after PR 36. With this change a list the title records after it closed a tree
culling list is not translated before that list, and the row no longer blinks.
Based on
mainat01852c0. One commit, 2 files (crates/victory-gpu/src/list/thin.rs,crates/victory-gpu/src/pipeline.rs). It replaces the earlier form of this PR.What was wrong
The blink was narrowed down by runs on one PC (RX 9070 XT):
VICTORY_THIN=0the row was quiet, for 3 to 4 fps less.VICTORY_THIN_THREADS=1it was quiet too, at half the frame rate.VICTORY_THIN_URGENT=0and forced queue waits changed nothing.So two lists translated at the same time are the cause. Translated in the call, a list the
title recorded after it had closed another one is never translated before that one. With
thin lists it could be, and what the translation of the culling programs' list leaves
behind for the others was then read before its time.
What is changed
(
55679a0547649d0b,89d08e561897d4e5,f8f50ab85e7b10bb; found bykroeeee-eeee/RDNA-proton-line 606ff7d). A recording in which a dispatch,
DispatchXorExecuteIndirectis made while one of them is bound is noted when the title closes it.one is translated to its end. Every other recording is translated side by side as
before, and nothing waits for it.
of a noted one (
Order). InRecording::run, a recording whose first piece is next andthat began after the earliest noted closing still open is put aside (
Order::hold) andstays scheduled. When a noted recording is translated to its end, those that may run now
go back to the front of
URGENT(if submitted) orREADY(order_finished).recordings left, the one closed first began before it was closed and can always run.
pipeline::has_shader, a unit test for the rule(
a_list_waits_for_those_closed_before_it_began) and one more line with the per-secondstatistics.
Two other forms that were tried and are not in this PR
this PR): the row was quiet too and a part of the flickering of shadows on the ground
went with it, but So-AFK-So/AFK-VI 77a07e1 measured it on an 8-core processor (Windows,
30 fps cap, frame generation): the thin lists' part of the frame went from 5.6 to
35.4 ms at 8,000 draws and more, the average from 29.3 to 24.1 fps.
form): the row still blinked on the RX 9070 XT.
Switch
VICTORY_THIN_ORDER(on unless0;0: lists are translated as their words come, asbefore).
What to look for in a log
Tested
play.ps1(FSR 4 performance with frame generation, thin lists on). The build that was run held
this rule together with the culling calls' own wait (the second form above, which alone
had left the row blinking): the row did not blink and no slowdown was seen.
--all-targets -D warnings: default, diagnosticsand release, on
01852c0: no warnings.threads, 2,000 recordings a run) were run for the first form, whose
Ordercode isunchanged: the order held and every recording was translated.
Not tested
before this text was written.
Claude Fable 5.2
Imported from ReTerryDavis/ReVIctory. Originally posted by Ace-Zer0x77 on 2026-12-04T11:20:11Z.
Tested on
previctory-v0.5.0-next(81bafbf, based on249f2aa) with an RX 9070 XT across city, dense tree-lined road, and bridge scenes (Series X @ 1440p and Series S @ 1080p):Late listsstayed low (~2.1) on the properly configured 1080p Series S / 30 FPS cap run.640×360 → 1280×720during one test,Late listsjumped back up (~182.4), so that spike looked tied to the scaling mismatch rather than this PR.Imported from ReTerryDavis/ReVIctory. Originally posted by staticman256 on 2026-12-04T14:47:49Z.
According to my own testing and the PRs above this may be slowing perfomance. Suggest holding off while I investigate.
Imported from ReTerryDavis/ReVIctory. Originally posted by staticman256 on 2026-12-04T15:41:04Z.
The old commit killed performance by half and was overly broad. The nice people who scanned my PR and put references to it in their AI blobs pointed me at a smaller fix. @thiagohille if you want to test this branch you're much better off testing this one. Once I'm done with my own tests I'll make a minimal version of this commit, squash the tree and update the PR OP.
Imported from ReTerryDavis/ReVIctory. Originally posted by staticman256 on 2026-12-04T16:19:41Z.
@Ace-Zer0x77 @thiagohille Pushed a lightweight version of the fix graciously taken from another upstream. I really would love a second set of eyes on this though. I don't really have a benchmark set up to have repeatable testing runs to measure performance impact so any data point is very welcome.
Imported from ReTerryDavis/ReVIctory. Originally posted by thiagohille on 2026-12-04T16:36:30Z.
@staticman256 Yes, I saw an impact of about 10 fps with the initial commit #42. I’m going to do another run right now—driving around on the roads—and I’ll provide you with full feedback, along with my hardware specs, shortly.
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.