Back copy: the kernel write is not the bottleneck (measured) #868
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 CQ187901 on 2026-11-25T11:10:59Z.
Back copy: the kernel write is not the bottleneck (measured)
Build
9376fd6+ local edits,VICTORY_RELAY=2,VICTORY_LEVELS_ON_DEMAND=0, RTX 4070 12 GB.copying backcopy_back_withNtWriteVirtualMemory(write_mapped)texturespreparation 932-2,347 ms/frameDetails on the last one: writing title memory without the kernel's write breaks page coherence for the title's own later reads (it re-fetches hundreds of MB of textures right after), so the whole frame collapses. No crashes, no device loss, but nothing to be gained.
Also worth noting for whoever looks at the back path: the CPU search for shader writes is small, not the cost -
0.0 MB in windows outside buffers,26.6 MB in 270 ranges of title buffers' copies (23.9 MB snapshotted),0.0 MB in copies of 1 MiB or moreper frame. So moving the compare to the card (#a26859fline) can't buy much; the 74 MB coherent write per frame is what costs.Conclusion on my side: the remaining ~150 ms is the coherent write into title memory itself. The only structural fix I can see is letting the card write into title memory directly (
VICTORY_INPLACEsecond stage, which the README lists as not done), or reducing the dirty bytes per frame. Any hint on which one you consider viable would be welcome.