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!770
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-770"
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?
@ExoCalibra on GitHub · 2026-11-25 07:06 UTC · original
ExoCalibra:integration/rtx3080ti-8dd30ab→main· +9008 −1582 · 48 files · 43 commits · openSummary
Validation & integration stack rebased cleanly onto official
main(f85101b— "Frame rate, second night") for Windows 11 + NVIDIA RTX 3080 Ti (12 GB VRAM, SM 6.6, Wave32, 64 GB RAM) running retail Xbox Series X|S (v1.0.2.1), maintained inExoCalibra/victory-exo.Combines
f85101b(VICTORY_ASYNC_SUBMIT=1,VICTORY_QUEUE2=1,VICTORY_INDIRECT_WINDOW=1, fill-ahead, 512 idle host lists, staging buffer reuse) with 16 cleanly integrated community PRs plus our own integration & stability fixes.Community PRs Included (16)
Performance & Sync (
f85101bgeneration)VICTORY_SKIP_WC_COMPARE=1, ~8× less copy-back: 40 ms / 60 MB → 5.2 ms / 2.4 MB)fill_aheadlatch (avoids ~100 ms/frame submit stalls)VirtualQuery-ing them every check (~88k → 6 calls/frame)VICTORY_WIDE_TEXTURES=1)Shaders & Wave32 / NVIDIA
Rendering, Textures, Series S & Input
first_shown(fixes character skin/arm BC-block corruption)Tiled::heldand updatejudgedwhen on-demanddetile()is skipped[controls]Our Own Integration & Fix Work
88f2b82(CBV 64 KiB clamp): ClampsD3D12_CONSTANT_BUFFER_VIEW_DESC.SizeInBytesto D3D12's 64 KiB (65536) limit (checked_next_multiple_of(256)) incrates/victory-gpu/src/descriptor/host.rs, preventing NVIDIA0x887A0001(DXGI_ERROR_INVALID_CALL) device removals on oversized title CBVs.eabd5ee(#765+#510+f85101btest integration): Updated#765'sStagingunit test incrates/victory-gpu/src/texture.rsfor#510'smotion_copy/frameparameter andf85101b'spooledfield so all three PRs compose cleanly.d034ac1(#853vs#812conflict triage): Verified viavictory-gpuunit tests that#853regressed 4 multi-viewwatch::testswhen combined with#812; reverted#853to keep all 174victory-gputests green.VICTORY_ASYNC_SUBMIT=1,VICTORY_QUEUE2=1,VICTORY_SKIP_WC_COMPARE=1,VICTORY_LEVELS_ON_DEMAND=1,VICTORY_CARD_FETCH_INFLIGHT=1,VICTORY_WIDE_TEXTURES=1,VICTORY_INDIRECT_WINDOW=1,VICTORY_CARD_BUFFERS_MB=1024).(Special thanks to @ArturoWolff for Linux/dxv replay checks and @HLVM04 for RTX 5070 Ti Series S cross-architecture validation.)
Verification (RTX 3080 Ti 12 GB, Windows 11, Series X,
v1.0.2.1)cargo xtask policy: 183 files ok (lower.rs= 501,927 / 524,288 bytes)victory-gpu: 174 passed (4 ignored, 0 failed)victory-hle: 118 passed (0 failed)translate --warm): 3,199 / 3,199 translated (0 do not translate) in 91.4 s on 4 threads9376fd6)f85101bstack)4.1–4.7 fps7.8–8.8 fps(10+ fps peaks)213–243 ms113.2–127.8 ms81–147 ms29.6–47.5 mscopying back38–42 ms(50–66 MB)5.2–7.2 ms(2.4–2.9 MB)preparing/copies83–96 ms(150–163 MB)55–66 ms(60–76 MB)7 refused, 1 untranslated0 refused, 0 untranslated00Visuals confirmed on live run:
#854).#764+#765).The argument clamp charges each list's budget as it clamps a window's records, and `victory-skips` the draws whose records did not fit. It charged a group's whole chunk of 64 records from the group's first thread and then marked each record's fit from that one running total, which is right only if the groups run in order. D3D12 defines no order between the groups of one dispatch, so they do not: with 128 records the first chunk's charges and the second chunk's raced for the one budget word, and WARP kept the second chunk's first two records and emptied the whole of the first chunk's. Concretely, `warp_budget_saturates_without_wraparound_and_preserves_draw_fields` sets two records that each charge half the budget and asserts that they are the two that fit. On WARP it kept records 64 and 65 instead, so the assertion failed with `left: [4194304, 16, ...]` at `i = 64`: panicked at crates/victory-gpu/src/indirect.rs:1539: the first two real draws fit the budget It is not only a test: which records a window keeps decided by the scheduler means the same list clamps differently between runs, machines and drivers, so a scene that fits on one run can lose draws on the next. Each record now charges the budget on its own, and the caller dispatches one group per 64 records with a UAV barrier between them, so the chunks charge in lane order too. A group's records were already charged in lane order within it; the barrier is what extends that across the chunks. The `base` root constant says which 64 a dispatch clamps. It is the seventh 32-bit constant, so the root signature gains one. An earlier attempt looped the chunks inside one group, which HLSL 5.1 refuses around a group barrier when the bound comes from a UAV or a constant buffer (`X3663`), and a constant bound of 4096 still failed. The dispatch loop is what the compiler accepts. Measured on Windows 11, RTX 5070 Ti, Rust 1.98.1 (pinned), single-threaded: victory-gpu 158 passed, 1 FAILED -> 159 passed, 0 failed workspace ... -> (see the run in the pull request) No game files were involved: every test here builds its own buffers and shaders. Signed-off-by: xiaotu030202 <[email protected]>The reasons draws and dispatches go without a host pipeline (the shader hash that does not translate, or the pipeline the host refused) were only counted in diagnostics builds; a release build said "dropped N" and nothing more. They are counted in every build now and the ten that cost the most draws are printed every five seconds ("dropped X/frame without a host pipeline: <stage> <hash>"), forty with diagnostics. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01McYwNpi6MZ72qHprqeeyRXf85101bpooled field eabd5eeb7b@ArturoWolff on GitHub · 2026-11-25 07:20 UTC · original
I replayed two retained Linux/Proton shader samples against the stack at
17b9f09and its common base8dd30ab, using the direct translator on Linux, hash-checked inputs, a 32-lane compiler limit, and independent builds. This is a different sample from your 1,164 runtime hashes.dxv; 364 outputs matched the base byte for byte and 361 changed (160 compute, 139 pixel, 60 mesh, 2 vertex). The final-composite pixel shader4f4ec7b16673362fitself stayed byte-identical. This makes its inputs and the earlier passes more informative comparison points than retranslating that final shader alone.dxv. The gains were the three #279 puddle pixels. Two refusals remain useful as out-of-sample checks:ceb5eb68cd99cb07(shallow-water timestep, descriptor address/format at0x38) andf133e35efed2a48a(lane mask at0x1eb4). The former did translate on the earlier #203 replay. These are overlapping gains, not three new shaders beyond #203 or #749.This checks translator coverage, not a Linux gameplay run, PSO creation, or the cause of the black frame. I haven't attributed any of the 361 differences to individual PRs. No game files or captures attached.
AI disclosure: Hermes Agent ran the replay and validation and wrote this comment on ArturoWolff’s behalf.
@ExoCalibra on GitHub · 2026-11-25 08:54 UTC · original
Updated the stack (fast-forward on
9376fd6) with 4 additional GPU-only PRs (#795, #768, #793, #783) and verified across a 28-minute, 94,140-line RTX 3080 Ti run (0 errors, 0 crashes, 0 device removals,victory-gpu156/156 passed,xtask policy174 files ok):42e2aa3)2.9–3.7 fps4.1 fps(2.6–2.9 fps at ~7,000 draws)273.7–344.5 ms241.6–243.6 ms134.1–184.0 ms111.5–112.6 ms(#793)preparing106.5–126.8 ms89.8–95.3 ms(#768, #783)copying back44.2–53.9 ms40.2–41.6 ms(#783)heap buffers40.1–62.4 ms27.0–31.5 mssteady (#783)Because none of the 4 added PRs modify
victory-shader, the DXIL shader cache stayed 100% warm (hits=3101, misses=0).@ExoCalibra on GitHub · 2026-11-25 09:32 UTC · original
Updated branch (2b4ee0c..28b74a9, fast-forward) with 6 additional verified performance PRs:
Live RTX 3080 Ti results (1.0.2.1, Series X)
@HLVM04 on GitHub · 2026-11-25 10:08 UTC · original
A check on a different architecture: RTX 5070 Ti 16 GB (Blackwell, 32-lane only, driver 616.64), Series S profile. This was an earlier head of the stack (16 PRs, before the latest additions), merged onto
9376fd6+ #798 #783 #799 #780. Percentiles of the frame lines after the first 60 s (two runs with the stack):cbv_size) and in two new tests inindirect.rs(#780 vs #793); both sides were kept.@ExoCalibra on GitHub · 2026-11-25 11:32 UTC · original
Rebased the validation stack cleanly onto official
main(f85101b— "Frame rate, second night") and resolved all merge conflicts (ExoCalibra/victory-exo).What's new in this rebase (
d034ac1)f85101b(VICTORY_ASYNC_SUBMIT=1,VICTORY_QUEUE2=1,VICTORY_INDIRECT_WINDOW=1, fill-ahead, 512 idle host lists, staging buffer reuse)VICTORY_SKIP_WC_COMPARE=1), #860 (fill_aheadlatch fix), #857 (batched copy-back runs), #864 (lane-order indirect windows), #854 (paired Wave64 on 32-lane GPUs + 230 more shaders), #798 (Series S upscaler), #764 & #765 (tiled on-demand texture fixes), #845 (warm-cache pipeline scheduling) — alongside #812, #768, #795, #715, #644, #510, #577.88f2b82),#765/#510/f85101bStagingtest fix (eabd5ee), and reverting#853aftervictory-gpucaught a 4-testwatch.rsconflict with#812(d034ac1).Live RTX 3080 Ti Results (Series X, 4,700–6,100 draws/frame)
4.1–4.7 fps→7.8–8.8 fps(10+ fps peaks)213–243 ms→113.2–127.8 ms81–147 ms→29.6–47.5 mscopying back:38–42 ms (50–66 MB)→5.2–7.2 ms (2.4–2.9 MB)0 do not translate,0 refused pipelines) — @HLVM04 this clears the last 2 refused pipelines + 1 untranslated shader from your RTX 5070 Ti check!#854) and the guard's arm texture corruption is fixed (#764+#765).cargo xtask policy(183 files ok),victory-gpu(174/174),victory-hle(118/118). Zero crashes or device removals.@grosterr on GitHub · 2026-11-25 13:26 UTC · original
Heads-up for this stack: with
VICTORY_WIDE_TEXTURES=1(#768) andVICTORY_LEVELS_ON_DEMAND=1together, some textures come out black or stale (on an RTX 3060: white blotches over a table and stools, a black towel, a black sheet of paper in the prologue bedroom). Cause, A/B runs and a few-line fix with a test are in #768. Measured ond034ac1+ maina253706: with the fix the picture is clean and the frame is 330 ms against 380 ms. AI-assisted (Claude Code); runs and observations are mine.@npanu420 on GitHub · 2026-11-25 13:26 UTC · original
RTX 3070 8 GB + i9-9900X (10 cores, no hybrid), Windows 11, Series S profile. Data point for this stack.
Build: your
d034ac1+ #809, #95, #108 (moves) + #827 + #154, a port of #523, and fork main0b0074emerged on top.Switches:
ASYNC_SUBMIT=1 QUEUE2=1 INDIRECT_WINDOW=1 SKIP_WC_COMPARE=1 LEVELS_ON_DEMAND=1 EARLY_TEXTURES_MS=40 CARD_REHASH_RUNS=1 CARD_BUFFERS_MIN_MB=1 CARD_BUFFERS_MB=1024 TEXTURE_NO_WAIT=1 PIPELINE_WAIT_MS=24 JOIN_COPIES=1 BAKE_TEXTURES_MS=0.Steady play (median over world frames ≥ 400, 6-minute runs):
The first ~400 world frames, while the scene streams in, run 280-365 ms.
Per frame: submit thread busy 150 ms, made up of:
The card is about 71-77% busy and the render thread spends 85 ms in Present.
On this machine:
d034ac1alone: 301 ms over frames 60-400 (vs 281 with #809/#95/#108).CARD_FETCH_INFLIGHT=1dropped, as main's README says, since it is not to be combined withINDIRECT_WINDOW.COPY_PLAIN=1: no gain (202 vs 192 ms whole-session).COPY_FAST=1: crashed 1 of 3 launches (details on #827).BAKE_TEXTURES_MS=0matters a lot on 8 GB cards (#594).(AI-assisted, Claude Code. No game data.)
@grosterr on GitHub · 2026-11-25 20:33 UTC · original
Heads-up for rebasing/merging this stack onto
main(465b94f/d510ee4,VICTORY_INDIRECT_GATHER=1): there is one non-conflicting auto-merge trap incrates/victory-gpu/src/indirect.rsbesides the HLSL conflict.SOURCE): keep#864'suint index = base + gi;and replaceid.xwithindexin the gather branch:record_gather_as(auto-merges without a git conflict!):main'srecord_gather_aspasses only 6 root constants (SetComputeRoot32BitConstants(0, 6, ...)) and runs a singlel.Dispatch(records.div_ceil(64), 1, 1). With#864's 7-constantcbuffer Record(uint base;at word 6), that leavesbaseuninitialized and breaks any gather batch with> 64records. Matchingrecord_clamp_asfixes it:Verified on this merged tree (
#770+d510ee4+#1014):cargo test -p victory-gpu199/0 (includingwarp_gathered_records_come_out_as_if_clamped_one_by_one), and tested in-game on RTX 3060 12 GB withVICTORY_INDIRECT_GATHER=1(G4 alone: 198 ms / 5.05 fps; full set: 174–198 ms / 5.0–5.7 fps, 0 errors, 0 device loss, clean picture).AI-assisted (Claude Code / Antigravity); the runs and observations are mine.
@grosterr on GitHub · 2026-11-25 23:03 UTC · original
More merge notes for this stack, for the next rebase onto main. Tree: this stack (
d034ac1) with main merged in up tod827419, plus #1014, #1057, #1112, #1044, #1101, #1150, #1023, #1032, #1136, #1156 and #1031. Every test passes after the changes below (victory-gpu216/0,victory-shader245/0). Three places need a hand: the first merges with no textual conflict and shows up only as a failing test; the other two are conflicts whose resolution is not obvious:1. Main
44bff61(VICTORY_ABSENT_ONCE) vs #812's view set (VICTORY_VIEW_SET). Main's new testwatch::tests::a_block_noted_uncommitted_is_asked_about_again_only_when_its_note_is_oldfails in the stack (left: Some([]) right: Some([21798434])), passes on clean main, and passes in the stack withVICTORY_VIEW_SET=0. #812 parks a view block found uncommitted in a placeholder and asks Windows nothing more about it until the runtime tells of a mapping. A block mapped there "without a word", as the test does, therefore stays unseen. That is #812's design (only the runtime's replace calls can fill a placeholder, and they tell). So I made the expectation depend onview_set():Both switches attack the same
VirtualQuerystorm (main's run 279: ~690,000 questions in 20 s, 40–50 % answered from the 100 ms notes). With the view set on, placeholder blocks are not asked about at all, soABSENT_ONCEprobably has little left to do in this stack.2. #1156 vs
05c5898and #768's motion tracking (texture.rs). #1156 replacesrefresh_unlocked(the read through the kernel during a remap) with a deferral, and a fresh staging buffer now waits for the mapping lock. Kept both sides: the deferral isStaging::defer_refreshwith #1156's behaviour (asked = 0, DEFERRED count, staging keeps its last complete image and is not marked dirty, which #1156'sremap_testsassert).observe_hash(motion) is untouched, because a refresh that reads nothing updates neither hash nor motion. Step 1 of05c5898'son_demand_skipped_detile_preserves_none_and_updates_judgednow checks the deferral: nothing read,detiled_levels()staysNone,askedis reset. Its old scenario, a fresh staging buffer failing underNO_WAIT, can no longer happen, because a fresh buffer waits.3. #1031 vs
5181f96(descriptor/host.rs,tiles.rs).5181f96remembers a tiled slot'sfirst_shownand remakes the slot when it changes. #1031 builds the view from the mask of resident levels (show_from→show_resident). The slot now remembers that mask (Nonewhile it is 0), andtiled_stalecompares masks. So a slot is also remade when a hole closes and the first level stays the same, as #1031 intends.tabled_tiled_slot_remakes_when_first_shown_changespasses withVICTORY_LEVELS_ON_DEMAND=1.Tiled::first_shownstays, now for tests only.Also, for the alias problem Ym1r1710 reported under #812 (
protect_aliasremoving the other views' blocks fromunclean): the stack'sprotect_aliasatd034ac1does not remove them, anda_write_is_reported_at_every_checked_viewpasses here.RTX 3060 12 GB, Ryzen 7 5700X, Windows 11. Not run in a game yet with #1150–#1031; the base without them (main
9c184b3+ #1057/#1112/#1044/#1101) runs at 179 ms a frame with 0 errors.AI-assisted (Claude Code); the merges were checked by me.
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.