Sync candidates from Marvisak/VIctory and fxceless/victory-fork #4
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/uiliannn--VItoriaBr#4
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@flale1 on GitHub · 2026-11-25 02:05 UTC · original
Here is a short list of sync candidates from
Marvisak/VIctoryandfxceless/victory-forkagainste1586fb, checked by code reading andgit merge-treeonly (no GPU or game files).1. fxceless
c96b4f2(clean merge one1586fb)c96b4f2(crates/victory-gpuonly): adds depth bounds test support (fxceless #82) and enables faster defaults (VICTORY_RELAY=2and wide copy-back on by default; the author reports ~400 → ~230 ms/frame on an RTX 4070).VICTORY_CARD_BUFFERS_MB=512.2. Clean Marvisak fixes (each merges alone on
e1586fb)Loader lock deadlock
a222fe3— Load host DLLs outside the module cache lock (PR #357)XMA / APU infinite loops & stalled streams
12fa535— XMA: start frame after a continuation at the next packet with frames (PR #96)338808e— XMA: end a frame at its data instead of looping forever, plus noise tests (PR #183)1054fe8— Audio: wrap an XMA read block past the ring's end instead of filling foreverDescriptor UAF & false exhaustion
1117251— GPU: holdSHADER_HEAPSacross descriptor mirror and check query bounds (PR #52)c1c3281— GPU: extend dynamic descriptor wraparound scan to prevent false exhaustionSaves, window & XAsync
26e03c3— XGameSave: ignore stray or unreadable version folders so saves are not lost (PR #1729)d4ef9eb— HLE: show title windows through a message-pumping stand-in to avoid "Not Responding" (PR #1677)f8c7498— XAsync: end the call that finished rather than whatever call reuses the block (PR #122)Samplers & depth/stencil footprints
e6fe8ec— GPU: fixCreateSamplerXmip-none base level, LOD range, bias clamp, and invalid enums54e7844— GPU: handle depth/stencil copy footprints (PR #504)Pipeline cache
a9d233f— GPU: serialize pipeline library atomic writes with unique temp files (PR #1660)d73d8c9— Pipeline cache: retry up to 128 temporary-file name collisions caused by stale staging files, preserving existing files (PR #1109)TDR logging & shader literals
e9f43ed— GPU: logTdrLevel/TdrDelaysettings and warn when a GPU hang would freeze the PC (PR #1082)1134418— Shaders: sign-extend 32-bit literals on signed 64-bit operands (PR #447)3. High-impact candidates with textual conflicts on
e1586fbFor evaluation with the game (these conflict textually with
e1586fb):cd94d35+940d32f— Page-marked copy-back: shaders mark pages written through views, and copy-backs compare only marked pages; the commit reports that the previous path compared 2.8–4.5 GB per frame, 98% unchanged. The follow-up stops a copy-back from saving a page for its own copy.0601955(helper lanev_readfirstlane),ed0dbfd(copy title writes under shader-written ranges),4ab20fc(indirect budget charged in record order without wrapping),4051149(null views for empty/OOB title buffer views).4. Upstream PRs/issues targeting related pain points
dxil.dllvalidation.VICTORY_TEXTURE_NO_WAITremoves it; fxceless issue #173 (open) — BVH sorted box hits: an absent child can sort before a valid hit (reproducer and patch).We did not build or test any of this with the game; 'clean' means the commit merges without textual conflicts on top of
e1586fb. Happy to send PRs for any of these if you want.AI-assisted (Claude Code).
@flale1 on GitHub · 2026-11-25 03:01 UTC · original
The README still lists these fixes under "applied improvements", so after the fxceless merge
8e46dcewe compared each commit againstd5a7580by reading the code only (no GPU, no game, nothing built).d5a7580a13a719lds_dwords.2471a62a16/ LDS byte-halfimage_sample_b_o,image_sample_cl_o, andimage_sample_l_oare not dispatched and fall into an error.911267csetMeshOutputCounts1ece3a6s_barrierfence_onlyidentifies unsafe blocks and removes the group wait while keeping the fences, but only withVICTORY_GROUP_SYNC=1(lower.rs:1386, lower.rs:1391, lower.rs:4731, lower.rs:4735; mode in emit/mod.rs:144-163); unset or2(the default) every barrier still waits.808a209VICTORY_GROUP_SYNC=1, a plain-jump back-edge makes every barrier fence-only, more conservative than the original (lower.rs:1397-1413, lower.rs:4731); the default mode still waits.a65d054DYNAMIC = 1 << 18;tables_donerecycles slots after submission (descriptor/host.rs:595, draw.rs:219, queue.rs:575).bd33acc77b4b4cderiv_regs(lower.rs:9513-9516).The five not fully covered (
a13a719,2471a62,911267c,1ece3a6,808a209) all touchlower.rsand conflict textually on top ofd5a7580(checked withgit merge-tree), so any port would be manual; these are static comparisons, not confirmed at runtime; I can send a PR fora13a719(LDS bounds) if you would like.AI-assisted (Claude Code).
@flale1 on GitHub · 2026-11-25 03:30 UTC · original
Possible bug in
SLOT_VIEWS(b62bbc0/77ad907).On the host side, each slot is written as 4 dwords (16 bytes,
index * 4u32: address lo, address hi, byte length, stride) indescriptor/host.rs:1169-1173, and the buffer is allocated asSLOT_VIEWS_COUNT * 16bytes (descriptor/host.rs:691). However,view_address_indexedcomputes the byte offset asslot << 3(8 bytes) inlower.rs:2719-2720and reads 4 dwords.Slot 0 is correct. Slot 1 reads dwords 2–5: entry 0's length and stride, then entry 1's address. Later slots also read the wrong entries; for example, slot 2 reads entry 1.
A likely one-line fix for this offset mismatch (the variable name
threeis then stale;slot << 4is 16 bytes):Found by reading the code, not by running it.
Thanks for bringing in 5 of the 15 from the earlier list. The 10 below are still open; each merges cleanly on its own on top of
aa85bb0(checked individually withgit merge-tree, no conflicts):338808e— XMA frame end at its data, noise tests26e03c3— XGameSave stray version folders (PR #1729)d4ef9eb— HLE title window stand-in (PR #1677)f8c7498— XAsync ended-call reuse (PR #122)e6fe8ec—CreateSamplerXLOD/bias/enums54e7844— depth/stencil copy footprints (PR #504)a9d233f— pipeline library atomic writes (PR #1660)d73d8c9— pipeline cache staging collisions (PR #1109)e9f43ed—TdrLevel/TdrDelaylog (PR #1082)1134418— 64-bit literal sign extension (PR #447)Also, the README still describes LDS bounds checks, the mesh output-count cap, and the old anti-TDR limits that the current code no longer has (details in the previous comment above and in #1).
AI-assisted (Claude Code).
@uiliannn on GitHub · 2026-11-25 10:21 UTC · original
Muito obrigado pelo levantamento detalhado, @flale1!
Atualizando o que já integramos na
main(todos validados com os testes unitários e os doiscargo clippydo CI verdes):fxceless/victory-forkc96b4f2(4f9a19d) +9376fd6(b401954) — depth bounds test#82, renderização da primeira sala, fingerprint barato no sync de descriptors,VICTORY_RELAY=2(com fix adicional de race emrelay_land()emaa85bb0e guardPASS_BUDGETemfaca57e).Marvisak/VIctory:c6959ac→708b450(loader lock deadlock)1054fe8→467f168(XMA read block wrap)c1c3281→a91ef70(dynamic descriptor wraparound)ba42db6(12fa535) →d0d0d23(XMA continuation frame start)628b95d→32d7848(SHADER_HEAPSUAF emmirror()emake_waiting()+ overflow checks)Na RTX 5060 Ti 16 GB já chegamos a até 6 fps no mundo aberto 3D sem TDR. Vou manter a issue aberta caso queira sugerir novos candidatos de sync — valeu demais!
@slauko on GitHub · 2026-11-25 14:04 UTC · original
What it takes to run this line under Linux/Wine — nine sync candidates, verified on
2b3c339e.With these, an RTX 3080 Ti under Proton Experimental (Wine 11.0, vkd3d-proton
master@ec20719) gets through the menus at 25–30 fps and renders the intro at 1.3–2.5 fps. Without them it stops at the start screen or in a black world.2b3c339eD3DCompiled3dcompiler_47refuses the runtime's own HLSL (E5005 … RWByteAddressBuffer): without the clamp every indirect execution is dropped, without the card compare the card buffers are offno host pipeline library: pipelines are not kept, so every run made its ~1,500 pipelines againpipeline/library.rs: the null-pointer case belongs in themakeclosure, since this line'sopen()differs from VIctory'sVICTORY_EARLY_PIPELINES=0title+0x2215c35, 45 s)shader_cache.rs(this line'swarm()andOutcomestay, both now translating throughtranslate_listed)VICTORY_SKIP_PIPELINESin release buildse6fe8ecCreateSamplerXfixgit cherry-pick -m 1(a plainmerge-treeon the merge commits reports conflicts the pick does not have);XGameSaveis here in the meantime asd1da85a8.stack_size(16 << 20),/STACK:16777216for the imageThree of the entries of the first list need nothing:
c1c3281,1134418and338808eare empty picks here — this line has them in another form.Two things that are not a pick but decide whether a Wine run starts at all:
input device device=0 connected=trueinstead ofdevice=4.SDL_GAMECONTROLLER_IGNORE_DEVICES_EXCEPT=0000/0000around the launch.WINESERVERdoes not select it — the server has to be started for the prefix.mainmoved on since (009856f0, with fxceless' performance commits), so re-check before taking; the table says where each needed a hand.