perf(agc): import a block that mixes private memory with shared views in smaller runs #15454
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15454"
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 boykopovar/AnyPS5. Originally posted by Nesyth on 2026-11-03T11:48:58Z.
What
On Windows, neighbouring registered ranges are imported as one block. When the block holds writable private direct memory beside shared views, the import maps a read-write alias, and
GuestArenaMapAliasmoves every resident run in the block into shared views. Since #9159 those views are compared rather than armed, so each sampled texture in them takes a full revalidation walk with byte compares at its draws. Such a block is now remembered with the failed blocks and imported in smaller runs: the private memory is imported directly and stays on the write watch, and an alias covers only the shared views. In Grand Theft Auto V (PPSA04264) the textures that take those walks drop from 125-163 to 38, and the frame p50 drops from 73.7 to 71.2 ms.Tested
Windows 11 Pro 26300, Radeon RX 7900 XTX (AMD Software 26.10.1), Ryzen 7 7800X3D, Release, MinGW-w64 GCC 15.2.
agc_driver_host_import_windowsgains three cases:Reverting the check, or dropping either of its two conditions, makes the test fail.
mainand 66 on this branch pass, with noVUID-lines and no missing layer.Grand Theft Auto V, Performance graphics mode, gameplay of the opening level, same machine, warm caches:
main9090972b7eThe last two columns come from separate
APS5_PROFILE_DRAW=1runs (the[rescache] revalidatecollect refusals and the[draw] pipelinedcommit time). Two of the three FPS runs of this PR used an earlier revision of the branch with the same code; only the debt entry moved since.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)