Skip to content

DetailStats beta ​

Interface of @v12-engine/client

ts
export interface DetailStats

How many things are drawn at which level now, by kind (WorldDetail.stats), and what that costs

Members ​

files ​

ts
files: {
        loaded: number;
        loading: number;
        failed: number;
        bytes: number;
        impostors: number;
        impostorBytes: number;
        budget: number;
        refused: number;
    };

The levels' files: loaded, still loading (drawn at the nearest level there is meanwhile), and those that did not load; the impostors made, and their atlases' bytes

fullTriangles ​

ts
fullTriangles: number;

What their triangles would add up to if every one were drawn at full

hidden ​

ts
hidden: Record<DetailKind, number>;

Of them, those not drawn at all (at a none level), by kind

levels ​

ts
levels: Record<DetailKind, number[]>;

How many of each kind are at each level, by its index: [at full, at level 1, ...]

shadowTriangles ​

ts
shadowTriangles: number;

Their shadows' triangles, as cast now (into each part of the shadows that takes them)

switches ​

ts
switches: number;

Levels changed in the last second: many tell a threshold sits where the camera rests

things ​

ts
things: number;

Things drawn by levels

triangles ​

ts
triangles: number;

Their triangles as drawn now, in view or not, and what they would be all at full