GPU: copy small real buffers in place via plaincopy::copy_buffer #1058
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!1058
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1058"
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?
@UwUCammie on GitHub · 2026-11-25 17:50 UTC · original
UwUCammie:pr/plaincopy-copy-buffer→main· +55 −5 · 3 files · 1 commits · openWith
VICTORY_COPY_PLAIN=1,plaincopy::copyskips everything under 256 bytes (LEAST = 256) so page-existence probes don't keep faulting. That floor also catches real small buffer reads inshadow::copy_back_with,relay_merge,card_merge, andcard_merge_relay— in the cell scene that was sending ~4,100 reads/frame back through the kernel copy path.Adds
plaincopy::copy_buffer(same fault guard and 2s faulted-block cache, without the 256-byte floor) andhost::read_buffer_into, and routes those four known-buffer read sites through it while leaving generalhost::read_into/ page probes untouched.Tested on Linux + Wine 11.22 + RX 7900 XT (RADV,
VICTORY_COPY_PLAIN=1,VICTORY_RELAY=2, 480 s run into the cell scene):plaincopysmall kernel fallbacks dropped from ~4,140/frame to ~62–96/frame (0.0–0.2faulted reads/frame)plaincopy::testspass under Wine (including a new small-buffer test).@Proudnoob4 on GitHub · 2026-11-25 18:28 UTC · original
Tested on Windows 10 (i5-13600K + RTX 4080 16 GB, Series X,
VICTORY_COPY_PLAIN=1) in a stacked live-RT bundle onXeltax/VIcky3fbc9cb8(#1014 + #1015 + #1029 + #1043 + #1044 + #1058 + #1059, 420s vs 300s/600s3fbc9cb8baselines):5,334–6,994/frame (3fbc9cb8)-> 972–2,690/frame in the stacked run (753–779writes back in place,33.8–33.9 MB,0.0fell back)3.3 -> 5.05 fps(max5.7, usual frame278 -> 176–180 ms), exit 0, clean capture.Note this run measured #1058 as part of that 7-PR stack rather than standalone; all 5
plaincopy::testspassed locally on Windows 10 before the run.AI-assisted benchmark and analysis (Gemini 4 Hydrogen).
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.