Under Wine, title memory is copied, not used in place #53
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/Belobug--VIctory-Belobug-AMD!53
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-53"
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?
@ntgata1-dotcom on GitHub · 2026-11-25 13:10 UTC · original
ntgata1-dotcom:wine-copies-title-memory→main· +29 −3 · 1 files · 1 commits · openUnder Wine and Proton, every frame has been black from the first one since
440589e("GPU: title memory used in place by the host GPU"); see #19. sil-kong bisected it there, and I got the same commit in a separate bisect.Change
One function,
direct()incrates/victory-gpu/src/shadow.rs:VICTORY_COPY_MEMORY. Wine is detected the wayvictory-hle'sxmem::on_winedoes it: ntdll exportswine_get_version.VICTORY_COPY_MEMORY=0keeps title memory in place, to try a vkd3d-proton where that works.title memory used in place by the host GPU on=false wine=true.VICTORY_COPY_MEMORY0Tested
Linux: RX 9070 XT (RDNA4), RADV / Mesa 26.3.1, system Wine 11.22, vkd3d-proton
v3.1-83-gcae8353edand DXVKdxgifrom GE-Proton11-14. Diagnostics build forx86_64-pc-windows-msvcwith cargo-xwin. First-boot screens, no input, 75 s per run, judged fromVICTORY_CAPTUREframes:8e79c80(upstream base)71652a2frame-2048.pngbyte-identical to8e79c80'sVICTORY_COPY_MEMORY=0VICTORY_COPY_MEMORY=1cargo xwin clippy -p victory-gpu --all-targets: the same 58 warning lines as onmain, none in the changed code.cargo xtask policy --staged: ok. The full check stops atlower.rs's size, as the README says.on_wine()is false, so both branches of the switch behave as before.AI-assisted (Claude Code).
🤖 Generated with Claude Code
@TobiasFornell on GitHub · 2026-11-25 21:32 UTC · original
Confirming this fix in-world on Linux (CachyOS, RX 9070 XT RDNA4, RADV, Proton Experimental, offline,
x86_64-pc-windows-msvcdiagnostics build, Series S mode, 480 s runs).Measured in-world A/B (same build,
VICTORY_COPY_MEMORY=1only, with the 4 KiB tile-base fix from #100 applied):OpenExistingHeapFromAddress1, ~2.5 GiB inL0/GTT over PCIe on RADV): median 9,537 ms/frame, GPU median 8,867 ms/frame (even though D3D12 command timestamps in a separate timing run summed to only 33.9–48.1 ms/frame).VICTORY_COPY_MEMORY=1,n=47world frames): median 1,954 ms/frame (-79.5%), GPU median 148 ms/frame (-98.3%), 0 kernel GPU page faults, and visible 3D world rendering (time_to_worlddropped from 215.3 s to 144.9 s).One companion note for Wine/vkd3d-proton once copy mode is on: if sparse copies remain enabled,
Shadow::sparse_writinghits0xc0000005on world entry because vkd3d-proton'sMap()is only 4 KiB-aligned — that is fixed by #100 (or avoided by #69).@gut0to on GitHub · 2026-11-25 16:23 UTC · original · reviewed
AI-assisted static review; I did not run tests or launch the game. Wine is detected with wine_get_version; title memory is copied by default under Wine, while VICTORY_COPY_MEMORY=0 preserves the in-place test path. The PR reports capture comparisons for unset, 0, and 1, plus cargo xwin clippy and cargo xtask policy --staged. I did not run those checks or the game here.
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.