pull: poll the copy fence; keep copies where 1.25x faster than the CPU #256
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/lobomfz--VIctory-xmem!256
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-256"
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?
@prinzjo on GitHub · 2026-12-02 21:54 UTC · original
prinzjo:pr/pull-faster→main· +39 −13 · 1 files · 1 commits · merged 2026-12-02 22:35 UTCCard copies of title memory are now waited for by polling the fence, and kept where they are a quarter faster than the processor.
Problem: in play on an RX 7900 XTX + i7-13700K (ray tracing on), the processor read the card's memory at 42-44 MB/s and the card's copies at 75 MB/s. The 2× rule from
ff57de2turned the copies off after the first 64 MiB. The processor then read 13.2 GB of title memory from the card in that session, and frames that refreshed new textures took 250-820 ms.Changes:
ff57de2(copies 41-79 MB/s against 76-97) still turns them off.D3D12_FENCE_FLAG_SHARED, whose completed value vkd3d-proton reads from the timeline semaphore itself. A plain fence's value comes from vkd3d-proton's fence thread, so it lagged by that thread's wake-up.Results (
pull::tests::reads_title_memory_on_the_card_back, game running beside it):Co-Authored-By: Claude Opus 5.5 [email protected]