Skip to content

FrameBudgetLook beta ​

Interface of @v12-engine/client

ts
export interface FrameBudgetLook

How much of a frame the work done in pieces may take (FrameBudget), as a game says it (GameView.world.frameBudget) or the editor's settings: all of it together, each work at most, and which goes first when there is not room for all

Members ​

most ​

ts
most?: Partial<Record<BudgetWork, number>>;

Milliseconds a frame each work at most, inside the total: dressing 4, debris 4, switches 2, merging 4, foliage 4 where left out (what each had alone before they shared one budget)

order ​

ts
order?: readonly BudgetWork[];

Which work has the room first when there is not enough for all, the first first: room is kept for those before it that wait, though they come later in the frame. Dressing, debris, switches, merging, foliage where left out (a unit that is waited for first, the scenery, drawn as copies meanwhile, then the grass, drawn as it was, last). The works it leaves out go after, in that order

total ​

ts
total?: number;

Milliseconds a frame all of it together: past them, what is left waits for the next frames. 6 when left out