Improve ChanAppEdit interpolation matching #37

Merged
coah80 merged 1 commits from codex/worker-chan-edit-measured-20260921 into main 2026-09-21 22:26:38 +00:00
coah80 commented 2026-09-21 22:25:57 +00:00 (Migrated from github.com)

Adds the VEC3 interpolation specialization in src/scene/channelEdit/iplChanAppEdit.cpp.

Measured against origin/main:

  • exact code: 6528/6696 bytes for the unit
  • .text match: 99.995820% -> 99.996414%
  • LinearIntp<VEC3>::get: 7 ctxdiff instruction differences -> 6
  • pool_diff.py: identical, 49 strings
  • full 43U build passed
  • DOL SHA1: 26116613f624061ba99c8d1a299aaa6efa85670d

No ReAgent material was used.

Note

Add VEC3 specialization for LinearIntp<VEC3>::get interpolation

Adds an explicit VEC3 template specialization in iplChanAppEdit.cpp so LinearIntp<VEC3>::get() returns a frame-weighted blend of mStart and mEnd, scaled by the reciprocal of the max frame.

Macroscope summarized 643c463.

Adds the VEC3 interpolation specialization in `src/scene/channelEdit/iplChanAppEdit.cpp`. Measured against `origin/main`: - exact code: 6528/6696 bytes for the unit - `.text` match: 99.995820% -> 99.996414% - `LinearIntp<VEC3>::get`: 7 ctxdiff instruction differences -> 6 - `pool_diff.py`: identical, 49 strings - full 43U build passed - DOL SHA1: `26116613f624061ba99c8d1a299aaa6efa85670d` No ReAgent material was used. <!-- Macroscope's pull request summary starts here --> <!-- Macroscope will only edit the content between these invisible markers, and the markers themselves will not be visible in the GitHub rendered markdown. --> <!-- If you delete either of the start / end markers from your PR's description, Macroscope will append its summary at the bottom of the description. --> > [!NOTE] > ### Add `VEC3` specialization for `LinearIntp<VEC3>::get` interpolation > Adds an explicit `VEC3` template specialization in [iplChanAppEdit.cpp](https://github.com/coah80/wii-ipl/pull/37/files#diff-a6536180330626088eeb56a59a0c9246ad854e0a58fd8edd8665e2c3b4ce70d8) so `LinearIntp<VEC3>::get()` returns a frame-weighted blend of `mStart` and `mEnd`, scaled by the reciprocal of the max frame. > > <!-- Macroscope's review summary starts here --> > > <sup><a href="https://app.macroscope.com">Macroscope</a> summarized 643c463.</sup> > <!-- Macroscope's review summary ends here --> > <!-- Macroscope's pull request summary ends here -->
Sign in to join this conversation.