BUDGET_WORKS beta
Variable of @v12-engine/client
ts
BUDGET_WORKS: readonly ['dressing', 'debris', 'switches', 'merging', 'foliage']The work a frame does in pieces, as much as its time allows, the rest waiting for the next frames (FrameBudget):
dressing: units among the copies of a crowd given a skeleton of their own, as something asks for one (UnitBodies.whenRoom: a point of the model, a tint of their own; about five milliseconds each) -debris: what breaks apart cut into its pieces (Debris.shatter) -switches: things drawn at a new level of detail (WorldDetail: a unit's new level is a copy of its model, made then) -merging: the scenery merged by chunks (DoodadView; drawn as copies until then) -foliage: grass and bushes laid by chunks of the map, the nearest the camera first (FoliageLayer; a chunk is drawn as it was laid before until then)