GPU: copy small real buffers in place via plaincopy::copy_buffer #1056
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from fxceless/victory-fork. Originally posted by UwUCammie on 2026-11-25T17:50:57Z.
With
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).Imported from fxceless/victory-fork. Originally posted by Proudnoob4 on 2026-11-25T18:28:30Z.
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
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.