Killflash, Pt.2: Deals with the remaining rarer tree and scene flickering #43
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/ReTerryDavis--ReVIctory!43
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@staticman256 on GitHub · 2026-12-04 10:06 UTC · original
staticman256:thin-order→main· +918 −38 · 9 files · 1 commits · closed without mergingThin lists: an opt-in switch that stops trees, props and ground vanishing for one frame (
VICTORY_THIN_ORDER)In short
The one-frame dropouts (a row of trees, a patch of ground, a few props gone for a single frame) are a side effect of an optimisation that is already in ReVIctory: thin lists (
VICTORY_THIN=1, on in the launcher's presets and inplay.ps1).This PR adds a switch that puts the order back where it matters, around the game's culling programs and its meshlet arguments program. Every other list is still translated side by side.
There is a switch for it in the UI, and it is off by default. Three ways to turn it on:
VICTORY_THIN_ORDER=1(withplay.ps1:-More @{VICTORY_THIN_ORDER='1'}).What it costs. Lists wait for each other, so the thread that submits to the card waits 7 to 9 ms more a frame for translation on the PC it was measured on. While the card is the limit, that wait takes the place of time the thread would have spent waiting for the card, and the frame rate hardly moves: 46.1 to 45.2 fps (table below).
Why it is not the default. The wait is free only while the card is the limit. The submit thread's work and its wait together are a floor under the frame time: 14.6 ms in a light scene there and 21.4 ms in a heavy one, which is a ceiling of about 68 and 47 fps. Nothing is lost at today's 40 to 46 fps. On a faster card, at lower settings, or once other work brings the frame time down, this would become the bottleneck. So it is something to opt into until the cause itself is removed (see the note for the maintainer below).
Based on
mainata6b5a99(the commit that takes 0.6.0's own flicker fix out again). One commit, 9 files. It replaces every earlier form of this PR.For testers
A build for those who cannot build: victory.exe, pre-release
play-20261205-thin-order. It ismainata6b5a99with this PR, a diagnostics build, used like upstream's exe. With the switch off it behaves as upstreammaindoes.What to test against: the same exe with the switch off. One thing changes, nothing else: same place, same settings, same number of minutes both ways. The 0.6.0 download is not a fair partner for it: it still has the flicker fix that
mainhas since reverted, so two things would change at once.VICTORY_STATS_LOG=1, which adds the counters named below to the log.prepis the submit thread's work,thinits wait for translation (the cost of this switch shows here),presentits wait for the card. Whilepresentstays above a millisecond or so, the switch costs nothing. The first two are also on the F3 HUD as "Sub 5.7+8.9ms" when F1 > Overlay > "Developer HUD metrics" is on.What to report: card, processor and its core count, resolution, upscaler and frame generation; the dropouts counted off and on, and over how many minutes; the fps lines of both runs, or the two logs; and from run B any "waits gave up" line with a number other than 0.00.
Most wanted: processors with 8 cores or fewer; setups where the processor is the limit (
presentnear 0); RDNA 3; NVIDIA. One known limit: on an RX 7900 XTX a tester saw flicker with thin lists off altogether. That is another fault, and this switch is not expected to cure it.For the maintainer: 0.6.0's fix did not stop it here, and why
@ReTerryDavis, 0.6.0 was tried as asked, a little before
a6b5a99took its two changes out again. For the record, since it may help with whatever comes next: on the RX 9070 XT the dropouts were still there with 0.6.0's fix, and they stopped with this switch. Same PC, one session,mainat4bc6814(0.6.0's fix still in) with this PR's change, the order switched live in F1.VICTORY_THIN_FINISH_AT_PRESENTwas on throughout, and the log showed it at work (2.3 lists and 3.2 ms a frame waited for at Present with the order off).VICTORY_THIN_ORDERRX 9070 XT, 12 translating threads, Windows 11, 4K output with FSR 4 performance, frame generation and ray tracing, about 3,400 to 4,000 draws a frame.
Why, as far as it was followed. 0.6.0 closed the race across the edge of a frame: the next frame's descriptor writes against the lists of the frame before (the wait at Present), and a first list taking the sweep of the frame before. What was left is inside one frame. Between the rows of the table only the order in which lists of the same frame are translated was changed, and the dropouts stopped. So on this card the frame edge is not where these dropouts come from, or not the only place. Whether 0.6.0's fix made them rarer there was not counted.
On thin lists themselves. The order rule in this PR is a workaround, and so was the wait at Present. Both give back from the outside, and at a price in waiting, a property that translation in the title's call had for nothing. What exactly a culling list's translation depends on, or leaves behind, was not pinned down. Ruled out by reading the code: buffer refreshes, copy-backs and write declarations (all deferred to the list's submission, so they follow the submit order) and the indirect clamp batches (kept per host list). What remains is what
State::tablesdoes. A thin recording keeps a table bind as a slot and a handle only. The title's descriptor slots are read, mirrored into host slots, snapshotted (VICTORY_SNAPSHOT_UAV_TABLES: "copied now rather than read from the title's slots when the card runs the list") and memoised when the list is translated: on another thread, some time after the title's call, and in another order. That code was written for the moment of the call.A suggestion, neither built nor measured: translation could be split in two. Everything that reads the title's memory or shared mirror state (the table lookups and snapshots, the keys of the per-draw memo) would be done at the title's call, or in one pass in the title's order, and kept in the recording. Only the emission of host calls from that would be left to the pool. A recording would then be a closed value that can be translated in any order. Neither this switch nor a wait at Present would be needed, and
VICTORY_THIN=0and=1would draw the same by construction. The price is a part of the title-thread time thin lists were made to save: on this PC about 6,400 tables and 71,000 table entries a frame are asked for, most of them answered by the memo.What is changed
55679a0547649d0b,89d08e561897d4e5,f8f50ab85e7b10bb; found by kroeeee-eeee/RDNA-proton-line 606ff7d), grass (9209777e8face9dd), props (17af15c4015cb4b6,fdd56d97a806bcca), simple objects (42f717f1b4d18e94) and far objects (1c4b3c0547e3e6fa). The meshlet arguments program (9146291b38ea9ce1) is kept apart, as it is bound in some 13 lists a frame. The depth pyramid program is left out (never bound in the runs looked at).Order). Nothing waits for words not recorded yet, so nothing waits for the title.VICTORY_THIN_ORDER_WAIT_MS). A wait that gives up lets the call run out of order and is counted.go_first,go_ahead,wanted). Before, a submitted culling list could sleep its whole bound for a stream of a recording not submitted yet, which gave way to every submitted one meanwhile.VICTORY_THIN_SPLIT=1(PR 51). Marks and numbers move with the pieces (from SovietBearz0r's rebase d61a654), and the order is told that a list is done only when all its parts are.VICTORY_THIN_ORDER): 0 nowhere (default). 1: both rules for the culling programs, and lists after a meshlet arguments list wait for it. 2: the meshlet program's calls wait for older streams too. 3 orall: every list waits for every list closed before it began.VICTORY_HUD_SUB_WAIT=1, the developer HUD's "Sub" figure shows the submit thread's wait for translation after its work ("Sub 5.7+8.9ms"). Otherwise the text is as before.thin_order; setsVICTORY_THIN_ORDER=1andVICTORY_HUD_SUB_WAIT=1; greyed out in Safe Mode, which has no thin lists).list/thin.rs,live.rs,pipeline.rs,queue.rs,queue/behind.rs,host/panel.rs,overlay/ui.rsinvictory-gpu;launcher/choices.rs,launcher/window.rsin the app.Switches
VICTORY_THIN_ORDER00,1,2,3orall, as above. Live in F1 > Pipelines; applies to lists begun after the change.VICTORY_THIN_ORDER_WAIT_MS100VICTORY_HUD_SUB_WAIT1: the developer HUD's Sub figure shows work + wait with the order off as well. Live in F1 > Overlay.What to look for in a log
At the start:
Each second, with
VICTORY_STATS_LOG=1and the order on:A "waits gave up" figure above 0.00 in a second where something vanished is the thing to report.
Measured and tested
All on one PC: RX 9070 XT, 12 translating threads, Windows 11, diagnostics builds started from
play.ps1, 4K output, FSR 4 performance, frame generation, ray tracing.4bc6814(0.6.0's fix in, since reverted).688d587): order off 39.9 fps (work 9.0, wait 3.0, wait for the card 8.4 ms); order 1 39.3 fps (work 9.8, wait 11.6, wait for the card 1.4 ms).688d587the culling programs alone no longer kept the treeline quiet; with the lists after a meshlet arguments list waiting for it, it was quiet at the same frame rate (40.5 against about 40 fps). Having that program's calls wait as well (mode 2) was quiet too and slower in the heavier scene (35.3 fps).VICTORY_THIN_SPLIT=1with the order on (on an earlier commit of this round): no change in frame rate in any mode on this PC.Ordercode itself): 48 runs, neither rule broken, nothing left over, no deadlock. With 2 workers the waits that gave up fell from 17 and 29 to 4 and 5 with the change that lets what is waited for go first.a6b5a99: clean. The tests of the app and ofvictory-gpucompile, among them the launcher's layout test, a new assertion that the switch sets both variables and neither in Safe Mode, and the order's unit tests inlist/thin.rs.Not tested
4bc6814or688d587. The change is the same, line for line;a6b5a99differs from4bc6814by the speedometer overlay and by the revert of 0.6.0's two changes, both of which merged without a conflict.list/thin.rs(a_list_waits_for_those_closed_before_it_began,what_a_held_list_waits_for_is_named,a_recording_is_awaited_up_to_a_piece) compile ona6b5a99and were not run where this was prepared (no Windows machine there); CI runs them.Orderand its first two tests, taken out verbatim, pass natively.-D warningsstops ona6b5a99at findings in lines this PR does not touch (host.rs,host/gpu_timings.rs,phone_screen.rs,watch_tests.rs, and inoverlay/ui.rsthe speedometer'sdraw_outlined_textandpaint_arc_bandand a test), so CI's clippy job is expected to be red until those are fixed. None is in a line changed here. The two launcher files were not reached by it (apps/victory/build.rsstops it first).Forms that were tried and are not the default here
688d587.Claude Fable 5.2
@Ace-Zer0x77 on GitHub · 2026-12-04 11:20 UTC · original
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.@staticman256 on GitHub · 2026-12-04 14:47 UTC · original
According to my own testing and the PRs above this may be slowing perfomance. Suggest holding off while I investigate.
@staticman256 on GitHub · 2026-12-04 15:41 UTC · original
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.
faee740667to2744d24902@staticman256 on GitHub · 2026-12-04 16:19 UTC · original
@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.
2744d24902to4292af01d6@thiagohille on GitHub · 2026-12-04 16:36 UTC · original
@staticman256 Yes, I saw an impact of about 10 fps with the initial commit #43. 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.
@thiagohille on GitHub · 2026-12-04 17:10 UTC · original
@staticman256 Here is a clean A/B benchmark comparing your previous broad PR #43 commit (
a779978) vs the new lightweight commit (2744d24), tested back-to-back on the exact samev0.5.0(249f2aa) base, same shader cache, and sameBalancedF1 profile.Hardware: Ryzen 7 9800X3D (
VICTORY_THIN=1,threads=16) | RX 7900 XTX 24 GB (Adrenalin26.11.2, 20-min Kombustor 1440p0/0artifacts) | 32 GB DDR5 | Windows 11 |1440p @ 240HzFair A/B Telemetry (
focused=true,draws >= 2000,n=134matched Open World samples each)a779978, first 134 OW samples)2744d24, full 134 OW samples)20.55/15.50/30.8034.35/26.90/47.60+67.2%(+13.80 fps)48.75 ms/64.60 ms29.10 ms/37.10 ms-40.3%Thin ms(median / p90)29.80 ms/40.40 ms4.70 ms/6.90 ms-84.2%(-25.10 ms)7,5327,862+4.4%heavier scene0/00/0a779978Key Takeaways
2744d24): Huge win —Thin msdropped-84.2%(29.80 → 4.70 ms) and real FPS jumped+67.2%(20.55 → 34.35 fpsmedian).2744d24vsa779978): While still better than pre-PR #43, flickering came back noticeably (86 counted in 12.9 min vs only 3–4 in 36.6 min ona779978), affecting trees, general vegetation, and raised pavement markers / road studs. All 3TREE_CULLINGhashes (55679a0547649d0b,89d08e561897d4e5,f8f50ab85e7b10bb) were active in the log, so it looks like additional culling/visibility compute shaders beyond those 3 hashes still race across 16 thin threads.a779978and2744d24).Full A/B report (
REPORT_EN.md) and both raw logs are attached in the.zipbelow.ReVIctory-PR42-AB-Benchmark-RX7900XTX-20261204.zip
@staticman256 on GitHub · 2026-12-04 17:32 UTC · original
@thiagohille I'm afraid that was a stale commit. Nevertheless I followed your p.2 and picked up all the rest of the shaders. Can you test my latest commit cc9277b against base ReTerryDavis:main i.e. to see if there is an FPS regression primarily and if culling works okay now. Testing against obsolete commits probably not as informative as I discard them in favor of new ones.
@thiagohille on GitHub · 2026-12-04 17:38 UTC · original · edited 2026-12-04 17:59 UTC
@staticman256 yes sir! It is an honor to be able to help. I'll do it on this way. I'll get back to u here.
Edit: Fininshing new warm from main and starting A-B now, VICTORY_THIN_ORDER=0 on A and VICTORY_THIN_ORDER=1 on B, same 10 minutes with car ride by the roads.
cc9277b4d1to9c526e3aab@thiagohille on GitHub · 2026-12-04 18:31 UTC · original
@staticman256 Done! Here is the clean A/B comparison of
cc9277b(4292af0+cc9277b, 8 culling shaders) against baseReTerryDavis:main(01852c0), tested back-to-back on the same fresh-warmed binary andBalancedF1 profile (VICTORY_THIN_ORDER=0vs1confirmed in both logs).Hardware: Ryzen 7 9800X3D (
VICTORY_THIN=1,threads=16, AVX-512vic_SpatialRadiusCullAvx2active) | RX 7900 XTX 24 GB (Adrenalin26.11.2) | 32 GB DDR5 | Windows 11 |1440p @ 240HzFair A/B Telemetry (
focused=true,draws >= 2000,n=100matched Open World samples each)ReTerryDavis:main(01852c0)VICTORY_THIN_ORDER=0cc9277b)VICTORY_THIN_ORDER=1cc9277bvsmain)34.20/34.0833.05/33.83-3.4%med /-0.7%mean26.40/42.90/49.6024.70/47.10/55.20-6.4%p10 /+9.8%p9029.25/38.00/47.70 ms30.25/40.70/68.80 ms+1.00 msmed (+21.1 msmax)Thin ms(med / mean / p90)4.65/4.70/6.50 ms7.15/7.09/10.60 ms+2.50 msmed (+4.10 msp90)prep(med / max)9.85/17.30 ms9.95/61.50 ms+0.10 msmed (61.5 msspike)7,8937,534-4.5%0/00/0Findings
34.08 → 33.83 fps,-0.7%; median-3.4%), andThin msonly increased by+2.50 msmedian (4.65 → 7.15 ms). Note that a noticeable early stutter occurred in the first few minutes of Run B (prepspiked to61.5 ms/frameto68.8 ms/presentto32.3 ms).cc9277b) than in Run A (main), though not 100% gone, they're have a big presence again.Full A/B report (
REPORT_EN.md) and both raw logs are attached in the.zipbelow.ReVIctory-PR42-cc9277b-vs-main-RX7900XTX-20261204.zip
@Luislariosss on GitHub · 2026-12-04 20:06 UTC · original
Confirming on another RDNA4 card (RX 9060 XT, v0.5.0 base
98959f3, warm shader cache): the one-frame vegetation/island dropouts in the boat cinematic (sky showing through, other props briefly changing) go away withVICTORY_THIN=0.What we measured (frame recorder + per-draw stats; a "flash" = ~7-11 mesh-shader culling pipelines emitting the same input groups as neighbouring frames but with ~0 surviving primitives for exactly one frame):
VICTORY_THIN=0: 0 flashes in a 1405-frame take of the full cinematic (about 4-5 expected at the old rate), and no visible dropouts in a second run. FPS about the same (25-28 while recording, ~27.5 baseline).VICTORY_THIN_ORDER=1(this PR's fix, active and waiting 2-12 ms/frame) did NOT remove them for us: 5 strong flashes in 1729 frames. One earlier take showed 0 by luck, so single takes can mislead.So on this GPU the cause seems to be in the threaded translation of thin lists rather than the order of the tree-culling lists alone. Caveat: small sample, one GPU, one scene.
@thiagohille on GitHub · 2026-12-04 20:40 UTC · original
@staticman256 @Luislariosss Tested
VICTORY_THIN=0on RDNA3 (RX 7900 XTX + Ryzen 7 9800X3D) on01852c0(16.4 minOpen World,168samples,Balancedprofile):-21.5%: median real FPS fell from34.20 fps(VICTORY_THIN=1) down to26.85 fps(frame 37.25 ms,thin 0.00 ms,idle 0.00 ms— main thread saturated).Best anti-flicker result on our RDNA3 setup so far: your original broad PR #43 commit (
a779978onv0.5.0249f2aa) remains by far the cleanest visually — it eliminated ~99% of flickering (only 3–4 blinks in 36.6 min), even though it came with the heavy FPS hit (20.55–22.85 fpsreal /thin 27.4–29.8 ms).The contrast between
VICTORY_THIN=0(still flickering frequently, including whole-screen/scenery flashes) and broada779978(~99% flicker-free) on RDNA3 strongly suggests the issue on 7900 XTX is tied to GPU submission / hazard timing between lists rather than thin-thread translation alone.@ReTerryDavis on GitHub · 2026-12-04 21:44 UTC · original
Holding this for now while we wait for more verified reports.
In the test reports above, VICTORY_THIN_ORDER=1 still showed flashes on RX 9060 XT (5 strong flashes in 1,729 frames vs 0 with VICTORY_THIN=0) and RX 7900 XTX (remaining flicker plus two new flash types, +54% thin time, and 61.5 ms prep spikes). That stall looks tied to a priority inversion where an URGENT submitted culling list waits up to 20 ms on an older unsubmitted chunk in READY that explicitly yields whenever URGENT_LEN > 0.
Once the wait/priority-inversion issue is resolved and we have clean verified reports across RDNA 3/4 (and ideally NVIDIA), we can revisit merging!
@thiagohille on GitHub · 2026-12-04 23:41 UTC · original
@ReTerryDavis @staticman256 @JonasGMorsch
following up on the RDNA3 (
RX 7900 XTX+Ryzen 7 9800X3D) investigation with a very promising data point — so far, the best combo we have tested on RDNA3 combines broad recording-order translation (original PR #43a779978behavior, which we gated asVICTORY_THIN_ORDER=all) together with@JonasGMorsch's now-merged PR #52 (VICTORY_THIN_SPLIT=1).tested in a 50.4-minute 4K (
FSR Quality) and F1 preset HIGH, Open World run on VENICE BEACH AND ROADS, a lot of trees, npc's, lights, cars, constructions, etc. on01852c0(0errors,0crashes), togglingVICTORY_THIN_SPLITOFF → ON live at19:14:00(focused=true,draws >= 2000):VICTORY_THIN_ORDER=all)SPLIT=0First ~28 min (
n=280)SPLIT=1(PR #52)Last ~21 min (
n=223)Thin ms(median / mean / p90)27.05/26.75/35.30 ms14.00/14.15/18.80 ms-48.2%(-13.05 ms!)22.75/23.2327.10/28.14+19.1%med /+21.1%mean18.30/28.80/36.0022.60/34.50/41.80+23.5%on p10 lows!43.95/55.10 ms36.90/44.30 ms-16.0%(-7.05 ms)Key Takeaway
VICTORY_THIN_ORDER=allwith PR #52 (VICTORY_THIN_SPLIT=1, keepingmarks/numberssplit in lockstep withchunks) cutThin msin half (27.05 → 14.00 ms) and boosted real FPS by+21%(+23.5%on p10 lows) while keeping the ~99% flicker-free visuals even in dense nighttime beach/city scenes at 4K.ORDER=all+ PR #52THIN_SPLIT=1combo is by far the best balance of near-zero flickering and smooth performance we've achieved so far.sure, despite the FPS loss with #43, #52 has recovered what was lost. Once it’s optimized by the great @staticman256 it’s going to be amazing on RDNA3.
thanks guys! I hope I’ve been able to help
@Luislariosss on GitHub · 2026-12-04 23:48 UTC · original
Thanks — one clarification on the RX 9060 XT numbers. The "5 strong flashes vs 0 with THIN=0" are vegetation/geometry one-frame dropouts (our detector keys on ~7–11 mesh-shader culling pipelines emitting ~0 primitives for exactly one frame). THIN=0 does remove those on our card (0 in 1,405 frames).
It does not remove a second, separate symptom: a whole-screen darkening with a warm tint for a single frame (luma e.g. 110 → 80 → 107; exposure probe unchanged). We see it with THIN=0 as well (2 in ~3,600 recorded frames, with and without the 30 fps cap), so it shouldn't be counted under the THIN results.
Also, THIN=0 is not free here: per-frame timing over 330 s runs shows >50 ms frames go from ~29/min (THIN=1) to 66–80/min (THIN=0) and the 1% low drops from 15.4 to 11–12 fps, while the median stays ~28–29. That fits the prep-spike/priority-inversion picture, so a THIN=1 fix for the ordering issue would be preferable to THIN=0 as a workaround.
@SovietBearz0r on GitHub · 2026-12-05 00:28 UTC · original
Helping with this one — the blocker isn't the change itself.
Why it can't merge right now
main.crates/victory-gpu/src/list/thin.rsgained 619 lines since your base (01852c0):VICTORY_THIN_SPLIT(a recording split across parts), the empty-command-list fast path, and theseq/left/deepaccounting inRecording::run. Your 410 lines land on all three.Default testsfailed ontimeline::report::tests::real_waits_are_recorded_with_who_ended_them(real threads, real waits — timing-sensitive) andDiagnostics testsonemit::isa_tests::single_instructions_give_what_rdna2_gives(shader ISA table); neither file is touched here, andcheckis just the aggregate gate. The shader test passes locally on the current tip, so a re-run is worth a try.Rebased, conflicts resolved, pushed
pr42-rebasedonSovietBearz0r/ReVIctory— one commit (d61a654) on top of currentmain(7e70117), with both mechanisms kept:Front::hand_overstamps the order mark and the stream number and pushes them with the chunk to whichever part takes it, so split parts stay in order.Recording::splitnow splitsInner::marksandInner::numbersalongsideInner::chunks(the order marks must travel with their pieces).Front::closekeepsmain's empty-list fast path and still setsclosingbeforeput(CLOSE).Recording::runkeepsmain'sseq/left/split/deepaccounting, adds your hold check before the chunk is popped, and callsolder::translated/order_finishedafter each chunk is translated.Verified on the rebased branch
cargo clippy -p victory-gpu --all-targets -- -D warnings: clean.cargo test -p victory-gpu --lib -- --test-threads=1: 699 passed, 0 failed, 21 ignored, including youra_list_waits_for_those_closed_before_it_began.cargo xtask policy: ok.VICTORY_THIN_ORDERA/B), so the flicker evidence remains yours.To adopt it (your branch, your call):
or the maintainer can cherry-pick
d61a654/ merge the branch. I can also open it as a replacement PR crediting you if you'd rather not rebase yourself — say the word and I'll do that instead, and I have an RX 9070 XT + the game here if an in-game A/B on the culling row would help.@Mbappinho on GitHub · 2026-12-05 02:17 UTC · original
On an RX 9070 XT, in one scene, neither this PR's head (
9c526e3a) nor @SovietBearz0r's rebase onmain(d61a654) removes the one-frame vegetation dropout.VICTORY_THIN=0does. The rebase costs no fps that I could measure.Setup. RX 9070 XT, Ryzen 7 9800X3D (16 threads), 32 GB, Windows 11. Release builds, Series X,
-RayTracing -NoPcQuality, no other switch, same save. Standing still on a porch facing a large plant, nobody at the controls. After 60 s in the world, the window is recorded for 60 s (ffmpeg gdigrab, 32 to 40 distinct frames a second). Each run's log shows the switches in force:VICTORY_THIN=1with 12 threads, and for the PR buildsVICTORY_THIN_ORDERon=true.Detector. A dropout is a frame where more than 2 % of the plant's region differs by more than 40 (of 255) from both neighbouring frames while the neighbours agree (within 12). I checked the events by eye: the whole plant is gone for that one frame, and the sea behind it shows. The same test on a wall, the sky and the sea gave 0 in every run.
01852c0d(this PR's base)9c526e3a01852c0dVICTORY_THIN=0main(966f7e7c,7e701172)main7e701172+d61a654So far only thin lists off has given 0. Every order variant has had runs with dropouts, and the counts move a lot from run to run (0 and 6 with the same build).
fps (not recorded, 150 s, same scene):
main+d61a65426 (p10 25, 39.3 ms).maingave 25 and 26 in the hour before. No measurable change.With hardware ray queries. These are from a branch of mine, not in
main; the rays leave the CPU side as the limit there. Thin lists default: 13 and 8. Withd61a654on top: 6 and 5, at 34 fps as without it. WithVICTORY_THIN=0: 0, but 21 fps instead of 30 while recording.To rebase
d61a654onto that branch I had to renumber one op: the branch also adds a stream op atafter(17), soOLDERwent toafter(18). Nothing else differed.Made with Claude Code.
9c526e3aabtob3b0642823@ReTerryDavis on GitHub · 2026-12-05 09:29 UTC · original
I’m trying a different fix for the remaining
VICTORY_THIN=1prop/tree/world flickering in the latest 0.6.0 release — please give it a try and let me know if it clears up the dropouts on your hardware (and how FPS looks)!What 0.6.0 changes
Instead of serializing specific culling shader hashes, it addresses two races we found directly under
VICTORY_THIN=1:host/aside.rs): When another thin-translated list started the frame'sheap_buffer_pass,Sweeps::passwas skipping the in-progress current pass and falling back to the previous frame's pass — leaving ~10–18 newly changed bindless buffer descriptors unmirrored/unrefreshed on the frame's first submitted list. It now waits for the current pass (self.newest) instead.list/thin.rs+queue/behind.rs): WithVICTORY_SUBMIT_FRAMES=1,Presentreturned while Frame N's tail lists were still translating, letting Frame N+1 overwrite title descriptor slots beforeVICTORY_SNAPSHOT_UAV_TABLESread them.Presentnow passively waits for Frame N's submitted thin recordings to finish translating before returning to the title (without stalling onvictory-submitor the GPU).If you want to A/B test,
VICTORY_THIN_FINISH_AT_PRESENT=0turns off #2 while keeping #1, and the per-secondVICTORY_THINlog line now reportspresent translation waitso we can see exact ms cost. Feedback from RDNA 3/4 and NVIDIA setups would be super helpful!@skrillex2911 on GitHub · 2026-12-05 09:34 UTC · original
Hey Terry, not sure where to ask so I'm gonna try here. How can some of us
show appreciation monetarily for your hard work? Let me buy you a coffee
On Sat, 5 Dec 2026 at 4:29 AM ReTerryDavis @.***> wrote:
@Bedirhan28 on GitHub · 2026-12-05 09:35 UTC · original · edited 2026-12-05 09:37 UTC
I tried the 0.6.0 and i still have the Flickerin issues on prop/tree/world.
Rx 9070xt
32Gb DDR5 RAM
Ryzen 7 9850X3D
@ReTerryDavis on GitHub · 2026-12-05 10:30 UTC · original
damn
@ReTerryDavis on GitHub · 2026-12-05 10:32 UTC · original
you by no means are required to give me any kind of money but if you do want to i have a kofi
https://ko-fi.com/zee_x64/
@ReTerryDavis on GitHub · 2026-12-05 10:36 UTC · original
i reverted my test change since it didnt fix it. this issue is gonna make me go insane
@staticman256 on GitHub · 2026-12-05 10:38 UTC · original · edited 2026-12-05 10:41 UTC
@ReTerryDavis I did manage to scramble together a fix. It costs 8ms of submit thread on my cpu so it's fine on 45fps i get without it, but if we ever get to large fps numbers it'll become a bottleneck. It's already pushed, just waiting for a fancy PR message for you explaining things.
Edit: and notes to testers, naturally.
b3b0642823tod9bee32b66@staticman256 on GitHub · 2026-12-05 10:46 UTC · original
@ReTerryDavis see the PR description, fully updated.
@Bedirhan28 @Mbappinho @SovietBearz0r @Luislariosss @thiagohille If you want to retest you can either build this PR or grab an exe I uploaded https://github.com/staticman256/ReVIctory/releases/tag/play-20261205-thin-order
Please note that this requires you to enable the tree flicker fix manually in the launcher, ingame or via command launch options!
@staticman256 on GitHub · 2026-12-05 11:33 UTC · original · edited 2026-12-05 13:30 UTC
Early tester on 7800 reports that this fix worked. Same for another user with 9070XT.
Also trying to refactor victory_thin in a different thread so this band-aid isn't needed.
Edit: earlier comment about black flashing sky is related to VICTORY_INPLACE = 2.
@staticman256 on GitHub · 2026-12-05 15:15 UTC · original · edited 2026-12-05 20:08 UTC
I am looking into a better and cheaper implementation that does not take up as much cpu time.
github-bot referenced this pull request2026-12-05 22:47:55 +00:00
Pull request closed