Repository navigation
Page inactive models and add optional indoor terrain cache reclamation - #65
Merged
Merged
Conversation
Owner
Author
|
@codex rebase and fix merge issues |
|
To use Codex here, create an environment for this repo. |
added 9 commits
November 12, 2026 19:36
capz
force-pushed
the
feat/aram-residency
branch
from
November 12, 2026 19:41
2d42457 to
af2ec02
Compare
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.
Inactive species models and the outdoor terrain cache previously remained in MEM1 indoors. Page unused shared species into ARAM after the idle dwell, retain player/drawable/doorway and 24 m lookahead demand, and restore required resources before a door opens or commits. Shared model and animation identities survive restoration.
Startup retires terrain scratch before loading the compact building kit, loads the selected species first and reserves the player early. Only that permanently pinned shared species uses resident-model compaction; the other species keep complete packages for ARAM. The town UI uses the SDK's 4,096-vertex canvas, saving 144 KiB of native memory. Model residency advances in 8 KiB / 32-work grants within the shared 1 ms soft preparation budget; teardown cancels and drains owned work before disposal.
Add discard terrain cache when indoors to the existing title debug modal and in-game Testing menu, default Off, persisted in the separate dev config memory-card item. Enabling it releases exactly 1 MiB after aliases and GPU users drain, retaining the immutable ARAM archive for restoration. Dev-config versions 1 and 2 remain readable; version 3 preserves the 40-byte record size and tree controls. Town/player save formats remain independent.
Pins published SDK 328.1 (SDK #173) and engine 41.1 (engine #21), including all lockfiles. Preserves the rebased Sunshine water work and its preparation-failure handling. Native measurement/reproduction sources document 5,732,384 requested bytes reclaimed for the tested five cold species; selected-only fox compaction separately frees 330,912 requested bytes. These are host native allocation measurements, not whole-game MEM1 totals.
Validation: routed managed/rendering/native checks, save compatibility, backend integration, public-package compilation and AOT generation pass. The engine completed all eleven Dolphin scenes. Canonical
a44206dgame acceptance verifies all five retired species restore through gameplay demand with zero residency errors, exact 1 MiB terrain reclamation/restoration with an unchanged archive, doorway reversal/reentry, and binary dev-config persistence across restart. Measured maximum advance is 841 µs; the 16-second indoor sample presented every VI at 16.683 ms. The resource run is paired with a guest-frame-synchronized title continuation after the wall-time input driver missed its final toggle; the same immutable NKit/card chain and unchanged town/player records are verified. Original-console performance qualification remains outstanding.Canonical game measurements and checkpoint provenance are checked in. The final follow-up changes only measurement documentation and presentation-paced title-test input; production game sources match the tested
a44206drevision.