Skip to content

Decompile mFrustum_c - #131

Merged
CLF78 merged 3 commits into
NSMBW-Community:masterfrom
alvaroms97:decomp/m-frustum-c
Sep 20, 2026
Merged

CLF78 merged 3 commits into
NSMBW-Community:masterfrom
alvaroms97:decomp/m-frustum-c

Conversation

@alvaroms97

Copy link
Copy Markdown
Contributor

Decompiles mFrustum_c (camera view frustum, used for culling) in full: both set overloads, intersectSphere, and intersectAABB. Also adds the small mAABB_c wrapper class (inherits from nw4r::math::AABB) needed by intersectAABB.

@decomp-dev

decomp-dev Bot commented Sep 10, 2026 •

Copy link
Copy Markdown

Report for SMNP01 (fbd96f6 - 4b0cbb4)

📈 Matched code: 8.95% (+0.03%, +1688 bytes)
📈 Linked code: 8.97% (+0.03%, +1688 bytes)
📈 Matched data: 2.25% (+0.00%, +16 bytes)
📈 Linked data: 4.02% (+0.00%, +16 bytes)

✅ 11 new matches
Unit Item Bytes Before After
dol/mLib/m_frustum.cpp mFrustum_c::set(float, float, float, float, float, float, const mMtx_c&, bool) +880 0.00% 100.00%
dol/mLib/m_frustum.cpp mFrustum_c::intersectSphere(const mSphere_c*) const +356 0.00% 100.00%
dol/mLib/m_frustum.cpp mFrustum_c::intersectAABB(const mAABB_c*) const +268 0.00% 100.00%
dol/mLib/m_frustum.cpp mFrustum_c::set(float, float, float, float, const mMtx_c&) +184 0.00% 100.00%
dol/mLib/m_frustum.cpp .sdata2 +16 0.00% 100.00%
runtime/global_destructor_chain.c __register_global_object -4 100.00% 100.00%
runtime/global_destructor_chain.c __register_global_object -4 100.00% 100.00%
runtime/global_destructor_chain.c __register_global_object -4 100.00% 100.00%
runtime/global_destructor_chain.c __destroy_global_chain -12 100.00% 100.00%
runtime/global_destructor_chain.c __destroy_global_chain -12 100.00% 100.00%
runtime/global_destructor_chain.c __destroy_global_chain -12 100.00% 100.00%
🥀 3 broken matches
Unit Item Bytes Before After
runtime/global_destructor_chain.c .dtors -8 100.00% 0.00%
runtime/global_destructor_chain.c .dtors -4 100.00% 0.00%
runtime/global_destructor_chain.c .dtors -4 100.00% 0.00%
📈 3 improvements in unmatched items
Unit Item Bytes Before After
runtime/global_destructor_chain.c .sbss +5 0.00% 66.67%
runtime/global_destructor_chain.c .sbss +5 0.00% 66.67%
runtime/global_destructor_chain.c .sbss +5 0.00% 66.67%
📉 3 regressions in unmatched items
Unit Item Bytes Before After
runtime/global_destructor_chain.c .bss -5 66.67% 0.00%
runtime/global_destructor_chain.c .bss -5 66.67% 0.00%
runtime/global_destructor_chain.c .bss -5 66.67% 0.00%

@CLF78
CLF78 requested a review from RootCubed September 19, 2026 12:02
@CLF78
CLF78 merged commit a21881b into NSMBW-Community:master Sep 20, 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.

3 participants