Generate authored terminal leaves independently of frond activation, matching the recovered last-level dispatch. This prevents three umbrella-thorn copies from expanding leaf cards into full frond nodes and hitting the node budget.
Add an active-frond regression with 17500 terminal cards and record verification: all 606 resources generate without truncation, SDK and client targeted tests pass, and corpus ASan/UBSan checks pass.
Add bounded SPT parsing, authored branch frames and foliage generation, independent LOD meshes, billboards, collision metadata, and legacy CPU/shader wind support. Restore seeded sampling and special leaf selection with generation diagnostics and reproducible baseline tools.
Include regression coverage and static recovery documentation describing remaining differences from the original runtime. SDK tests pass (4/4); full corpus and client validation are recorded in the recovery notes.
FindBoneIndex builds a name->index map once per instance (first match
wins, as the linear scan did); GetBoneWorldTransform gains an index
overload and attached models cache their bone index at attach time.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The cached GPU draws keep the skinned texture names and the unskinned
originals; SetSkin/ClearSkins bump a generation so the cache re-resolves
once instead of lowercasing every texture path every frame.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each tri-group draw now references one shared geometry with a
first_index/index_count sub-range instead of copying the vertex
streams per group.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
BuildDrawCommandsWithPalette recomputed gr2::bind_pose of the parent
skeleton and an O(part bones x parent bones) name match every frame for
every hair/armor part. Both depend only on the two skeletons; rebuild
them when the parent skeleton changes and reuse the palette buffer.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Gr2MeshDraw::bone_matrices (a full palette copy per draw, also filled on
the CPU path where nothing reads it) becomes a shared_ptr palette set by
UpdateGpuDraws for gpu_skinning draws only.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Curve::eval rebuilds the B-spline window like ConstructBSplineBuffers:
clamped ends repeat the endpoint; underflow/overflow looping takes knots
from the other end (+-duration, skipping the duplicated last knot); equal
trailing knots get +1e-5.
- Degree 3 (CubicCoefficients) supported; degrees 0..3 share one path.
- Degree 0 takes the control of the first knot > t (SampleBSpline0 = pi[0]);
DaKeyframes32f curves are marked keyframed and keep frame trunc(t/dt).
- Loop flags threaded through BoneTrack::sample, Animation::sample_local and
sample_pose; control_loop_state() mirrors GetControlLoopState.
- Gr2ModelInstance::SetAnimationLoop(); animated attachments (fmod) loop.
- Quaternion continuity stays on for every span (Granny: buffer path only).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>