Repository navigation
perf: coordinate visual memory and skip hidden world work - #164
Merged
Merged
Conversation
added 5 commits
November 24, 2026 12:34
capz
marked this pull request as ready for review
November 24, 2026 12:23
added 10 commits
November 24, 2026 13:51
# Conflicts: # game/AnimalTown.GameCube/Program.cs # tests/AnimalTown.Checks/ModelResidencyChecks.cs # tests/frame-profile-streaming.py # tests/validation-plan.ps1 # tools/AnimalTown.Tools/DepotPackageChecks.cs
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.
Unused visual resources consumed MEM1 while concealed geometry and synchronous terrain work added CPU/GPU cost. A saved town with five required species could also stall during startup. Required scenes, the selected player and doorway endpoints now keep their resources while unused models, interiors, floor sources, snow masks and terrain cache yield memory through one allocator-aware admission policy. Concurrent allocation peaks are reserved, required restores run first, cancellation drains before releasing ownership, and before/after-draw opportunities share one 1 ms soft CPU budget.
Fully concealed actors skip pose/submission work; fully covered flat ground and buried markers skip drawing until snow changes. Sparse snow recovery, shared object bins and bounded asynchronous terrain prefetch avoid repeated work. Qualified fox, bunny and giraffe LODs remove 13.7–21.6% of triangles; shared species and visitor cohorts replace atomically. Indoor cache release and warm prefetch are automatic, and both obsolete debug rows are removed while legacy saved bytes remain readable.
The published SDK379.1/Hypercube55.1 dependency chain removes unused source-importer roots (SDK191, engine25). Against the pre-trim candidate
7f5651a, the final DOL uses 787,552 fewer loaded bytes (769.1 KiB); the UI canvas separately saves 110,592 bytes (108 KiB). No managed-heap capacity was cut: maximum-save tests exercise all 6 MiB.Validation:
Tests select a 6 m terrain prefetch guard, 24/30 px mesh hysteresis and 48/60 px animation hysteresis. Model demand follows the camera/horizon with 24 m lookahead, narrowing under pressure. Physical GameCube frame-rate gains remain unmeasured. Policy:
docs/visual-resource-policy.md.