[pr-performance][memory] Remaps under flights: the flights land in the pages the addresses showed before (DARNER_LAND_OLD_PAGES; off by default) #58
Loading…
Reference in a new issue
No description provided.
Delete branch "Sobo/Darner:land-old-pages"
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?
When the title remaps title memory that flights still in the air may
write, the remap waits for those flights (15-20 ms a frame while an area
streams in). With DARNER_LAND_OLD_PAGES=1 the remap goes ahead: the pages
the addresses show then are noted (
redirect_remap), and the landings ofthose flights write through our view of the whole section into them
(
redirected). The notes go once the flights have landed(
redirects_landed); a section gone meanwhile keeps our view of it untilthen. Off, nothing changes.
Co-Authored-By: Claude Opus 5.5 [email protected]
Fluxer-ID: 1577742832095989771
Contributor role (optional)
What it changes
Switch:
DARNER_LAND_OLD_PAGES=1(off by default).The console runs a queue's remap behind the work given to the queue before it, whose writes go to the pages shown then. The layer waits for those flights before letting the title remap: 15-20 ms a frame while an area streams in (1.2-1.5 such waits a frame). Leaving the waits out (
DARNER_LAND_BEFORE_REMAP=0) made the flights write the new pages, and the game ended within a minute.With the switch the remap goes ahead: the pages the addresses showed before are noted with the count of the line's items after which every flight of then has landed, and a landing that began after that writes those addresses through the layer's view of the whole section, into the old pages. Notes go when their flights have landed; a section the runtime lets go keeps its view while notes remain. A per-frame log line counts the remaps redirected.
How it was tested
main4a92569fb(git.gtahub.st) with this patch applied. Build check:cargo clippy -p darner-gpu --all-targets --target x86_64-pc-windows-msvc --locked -- -D warnings: clean.cargo testwas not run (no Windows machine for the checks). The gameplay numbers below come from my own builds, which carried this change together with other local changes (same scene, settings and hardware before and after).darner warm --used --againwithDARNER_WARM_SHARED=1.Checklist
main.docs/asset-policy.md.Checked for overlap
Remaps under flights: the flights land in the pages the addresses showed before (DARNER_LAND_OLD_PAGES; off by default)to WIP: Remaps under flights: the flights land in the pages the addresses showed before (DARNER_LAND_OLD_PAGES; off by default)WIP: Remaps under flights: the flights land in the pages the addresses showed before (DARNER_LAND_OLD_PAGES; off by default)to [pr-performance][memory] Remaps under flights: the flights land in the pages the addresses showed before (DARNER_LAND_OLD_PAGES; off by default)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.