mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-01 12:45:56 +00:00
HostImportFor walks the import map under the import mutex for every in-place vertex input, index buffer and label it serves, most of them for the same few buffers. It now first checks the last four imports a lookup found, while the map is the one they came from: the imports epoch moves with every retire and trim and the map's size with every insert. Imports in the map never overlap, so the one that contains the range is the map's answer. A hit counts its use as a map lookup does, so imports age out of their eviction protection after as many lookups as before. APS5_NO_RECENT_IMPORTS looks every import up in the map. Co-Authored-By: Claude Opus 5.5 <[email protected]>