Under Wine, title memory is copied, not used in place #53
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from Belobug/VIctory-Belobug-AMD. Originally posted by ntgata1-dotcom on 2026-11-25T13:10:12Z.
Under 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
Imported from Belobug/VIctory-Belobug-AMD. Originally posted by gut0to on 2026-11-25T16:23:18Z.
Review: COMMENTED
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.
Imported from Belobug/VIctory-Belobug-AMD. Originally posted by TobiasFornell on 2026-11-25T21:32:55Z.
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).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.