Repository navigation
Conversation
…is forgotten Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…son memo Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… ordering point Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t epoch Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
This pull request is labeled |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Stacked on boykopovar#6187; only the last two commits are this PR. Independent of boykopovar#6192, except that both add a test at the same place in
CMakeLists.txtandtests/Recorder.cpp, a trivial conflict for whichever lands second.ProvedClearKeysandProvedCurrentDccKeysskip the scan of a surface's DCC keys while the key range is unchanged since the last scan, proved byCollectWritesandUnchangedSince. Over keys the write watch does not cover (on Windows, every host-pointer import of the guest mapping, boykopovar#1441),CollectWritesreturns 0, so no proof is ever kept and every use scans the keys again.In RetroArch's Flycast core (PPSA99169) on Windows: 3.7 million key scans per 10 s (72 GB read, 2.2 s), with 0 proved and every one counted unstable.
NewestStamp(driver stores into the keys),ForgetStamp(perf(agc): an untracked comparison memo holds until memory it covers is forgotten boykopovar/AnyPS5#6187) and the recorder's newest pending write note over the keys. A scan that is otherwise stable becomes the proof with that stamp, and a later call with the same stamp returns the proved keys without scanning.compareUntracked,docs/dev/ARCHITECTURE.md): a CPU store into untracked memory is seen at the next ordering point. Pending GPU writes still make a scan unstable, as before.Tested
Windows 11, NVIDIA GeForce RTX 5070 Ti, MinGW-w64 GCC 15.2.0, on main
8cd937e29with boykopovar#6187; rebased onto main92e50418fwith boykopovar#6187 (only a CMake test list conflicted), where the full suite passes 1276 of 1296, 14 skipped, failing only the known tests below andagc_driver_multisample_fill_host_only, which passes when run alone.ctest: 1233 of 1249 pass, 14 skipped.guest_call_trace_abortandwindows_backtrace_reportfail, and fail the same way on plain main here.agc_driver_prepared_graphics_prebuild_0/_1andundeliverable_host_exceptionfail under my test runner because it skips their environment changes and pass pattern; run with those, they pass.agc_untracked_key_proofs(agc_driver_recorder_tests --untracked-key-proofs-only): keys in an untracked allocation. In one collect epoch the secondProvedClearKeysand the secondProvedCurrentDccKeyscome from the proof; after a store into the keys and a new epoch the keys are scanned again and read as changed. Without this change the test fails with "a second key proof over untracked memory in the same collect epoch scanned the keys again".ProvedClearKeyschange alone did not move it measurably; with theProvedCurrentDccKeyschange as well, 65.3% and 66.9% of real time against 68.0% and 68.0% (that stack also had perf(agc): fast revalidation over untracked memory proves a surface by its stamp until the next ordering point boykopovar/AnyPS5#6192). I have no measurement ofmainalone.Related: boykopovar#6060 keeps Windows imports of private write-watched memory on
GetWriteWatchwhen a start-up probe allows it; key ranges it keeps watched never reach this path.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code