Skip to content

Reduce packed-world memory and release bootstrap resources - #19

Merged
capz merged 2 commits into
mainfrom
perf/reduce-memory
Nov 12, 2026
Merged

capz merged 2 commits into
mainfrom
perf/reduce-memory

Conversation

@capz

@capz capz commented Nov 12, 2026 •

Copy link
Copy Markdown
Owner

Packed-world streaming reserved a 128 KiB source buffer and full-width ID tables regardless of the pack. Size staging once from the supported records and configured coalescing ceiling, compact private ID indexes, and defer ARAM metadata until its first successful allocation. The 649-record validation world saves 57,088 native staging bytes and 9,362 bytes in selected managed array payloads while its cold cache is unused (4,162 array-payload bytes once active). Managed figures exclude object field changes, headers and allocator rounding.

Scope the bootstrap file to construction and release partially created textures, meshes and asset-stream ownership on failure. Preserve the original WorldStreamer constructor and expose its actual staging size for teardown accounting. The audit documents API tradeoffs, SDK opportunities, reproducible payload reports and before/after CLR probes; managed heap reservations remain unchanged.

Validation: full host suite (56 Python tests, Debug/Release Core, ownership/cache checks and both native/fallback ordered-rendering paths) passed. Managed Release builds passed against SDK 318 and the SDK memory branch in capz/DolphinDotNet#171. A PPC native build with that SDK passed all eleven Dolphin streaming scenarios, including faults, pressure, ARAM, cancellation and teardown. Occlusion matched all 199,680 compared pixels exactly, and 140.8 seconds of DSP output had no silent windows. Source and published-package pins remain matched on SDK 318 until a new SDK release is available.

@capz
capz merged commit a5d2eea into main Nov 12, 2026
17 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