Skip to content

BudgetSample beta ​

Interface of @v12-engine/client

ts
export interface BudgetSample

What the work done in pieces took of the frames of the last second (FrameBudget.sample), for the šŸ“Š window and the editor's Metrics

Members ​

longest ​

ts
longest: number;

The most one frame of the last second took of it, in milliseconds

ms ​

ts
ms: number;

Milliseconds a frame all of it took, over the frames of the last second

total ​

ts
total: number;

Milliseconds a frame all of it may take (FrameBudget.total)

works ​

ts
works: {
        name: BudgetWork;
        ms: number;
        most: number;
        waited: number;
    }[];

Each work, in the order it has the room in: what it took a frame, its most, and in how many frames it waited for want of room