Skip to content

Page inactive models and add optional indoor terrain cache reclamation - #65

Merged
capz merged 12 commits into
mainfrom
feat/aram-residency
Nov 12, 2026
Merged

capz merged 12 commits into
mainfrom
feat/aram-residency

Conversation

@capz

@capz capz commented Nov 12, 2026 •

Copy link
Copy Markdown
Owner

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 a44206d game 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 a44206d revision.

@capz

capz commented Nov 12, 2026

Copy link
Copy Markdown
Owner Author

@codex rebase and fix merge issues

@chatgpt-codex-connector

Copy link
Copy Markdown

To use Codex here, create an environment for this repo.

@capz
capz force-pushed the feat/aram-residency branch from 2d42457 to af2ec02 Compare November 12, 2026 19:41
@capz
capz merged commit 335eea9 into main Nov 12, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant