The live demo starts when it’s in view.Drag to rank · compare pose rates
Keep crowd simulation running while posing less important bodies every third or twelfth tick.
Rank by distance with immediate promotion, demotion slack and a forced-full override; optionally slow small figures further. PosedRoot skips a second matrix walk after a published pose and transports unchanged joints rigidly between poses. A walking crowd compares live pose CPU with tiers on and off.
What it costs a frame
Not measured yet.
What it needs
Renders with
WebGPU or WebGLWebGPU where there is one, WebGL2 where there is not.
Your browser
Runs hereNo WebGPU needed
Depends on
three.js 0.187.0No other packages
With an agent
install("pose-tiers")Your coding agent reads its pitfalls and installs it through the library’s MCP server. Set it up
What it’s for
Crowds whose live rig solve dominates CPU time
Far or small figures that can hold their last pose while movement stays correct
Keeping a selected or interacting figure at full pose rate
Avoiding duplicate matrix composition after a rig publishes its world matrices
Pitfalls, in brief
Only posing is rationed: simulation, motor, gait clocks and collision must still advance every simulation tick.
Caps are soft: posed includes full, slack retains higher tiers beyond their nominal rank cut and forced subjects can exceed the entire budget.
A held pose slides: a root keeps moving while its legs retain the last solve.
Publish after placement: published means every descendant world matrix already matches the current root.
Own the subtree: set rigid only when descendant local transforms stay unchanged between poses.
3 more in brief
Parked does not hide anything: the owner hides the subtree or renders a baked replacement.
Pose tiers do not batch draws or stop skinning uploads: they reduce CPU solving and matrix composition.
Live samples are not costs.json: the demo runs two identical populations, one hidden, to compare pose dispatch plus publication over the same ticks.
8 pitfalls in full, the hook-up guide, the module source and its tests come with the part.
Where it comes from
From HaTac. Adapted from published work, named below.
Hannes Andersson: The source game’s crowd pose budgets, staggered cadence, rank hysteresis and published-pose matrix optimization.
crowdpose rateanimationlevel of detailCPU budgethysteresisfixed timestepmatrix worldskinningthree.jswebgpuwebgl