Repository navigation
Reduce transform allocations and native model memory - #171
Merged
Merged
Conversation
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.
Transforms eagerly allocated local matrices and child collections even for root objects, while native model batching reserved two full tables for a combined 4,096-mesh limit and skinning reserved 256 joints per instance. Reserve hierarchy storage during attachment, share one bounded submission table, and size skinning palettes from validated model joints when workspace is allocated. Public APIs and steady-state allocation behavior are preserved.
Measured savings:
The audit includes reproducible measurements, conditional-linkage/heap-reservation caveats, and deferred opportunities in materials, streaming textures, native buffers, draw scratch and animation poses. Engine-side work is in capz/hypercube-engine#19.
Validation: focused CLR Debug/Release and zero-allocation checks; full native model/import/animation, production GX recording (4,096 opaque/alpha/mixed and 4,097 rejection), AOT and GC-stress acceptance; palette ASan/UBSan checks; CI selection/coverage invariants; Hypercube managed integration and PPC native build. The combined engine/SDK build passed all eleven Dolphin streaming scenarios, with an exact 199,680-pixel occlusion comparison and 140.8 seconds of continuous DSP audio. All GitHub checks on this SDK PR are green.