LL perf (Avatar/animation): Avatar physics per-frame waste #328

Closed
opened 2026-10-04 14:09:21 +00:00 by sky_line · 1 comment
Owner

From the LL-origin inefficiency audit (finding A3). File/line references are from commit 0229f8872c; re-locate them before working.

Avatar physics per-frame waste

  • Fake joint states: fake ROT states exist only to fill mJointSignature (llphysicsmotion.cpp:222-224; llmotion.cpp:120-122). 4 of the 6 are silently dropped by name keying (llpose.cpp:99-106); 2 still cost blender slots and exports.
  • Per sub-motion step: 2 dynamic_cast (:666, :703), 7 getParamValue (:516-522), and a std::map find per driven parameter (llcharacter.cpp:276-285).
  • Fix: an "always update" flag on LLMotion; cache casts and pointers.
  • Confirmed. M.

Verify the cost (profile or timer) before and after changing it.

From the LL-origin inefficiency audit (finding A3). File/line references are from commit 0229f8872c; re-locate them before working. **Avatar physics per-frame waste** - **Fake joint states:** fake ROT states exist only to fill `mJointSignature` (`llphysicsmotion.cpp:222-224`; `llmotion.cpp:120-122`). 4 of the 6 are silently dropped by name keying (`llpose.cpp:99-106`); 2 still cost blender slots and exports. - **Per sub-motion step:** 2 `dynamic_cast` (`:666, :703`), 7 `getParamValue` (`:516-522`), and a std::map find per driven parameter (`llcharacter.cpp:276-285`). - **Fix:** an "always update" flag on `LLMotion`; cache casts and pointers. - Confirmed. M. Verify the cost (profile or timer) before and after changing it.
sky_line added this to the Slipstream project 2026-10-06 15:04:14 +00:00
Author
Owner

Shipped in a published release and tested; closing (testing-lane sweep 2026-10-11).

Shipped in a published release and tested; closing (testing-lane sweep 2026-10-11).
sky_line 2026-10-11 13:24:54 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
sky_line/Slipstream#328
No description provided.