Skip to content

DrawnCost beta ​

Interface of @v12-engine/editor

ts
export interface DrawnCost

What a model costs as the game draws it: as a unit (its parts that move with a skeleton put together), and as scenery

Members ​

scenery ​

ts
scenery?: {
        draws: number;
        triangles: number;
    };

Nothing where its parts cannot be one mesh (some bent by a skeleton, some not: a skinned character's)

size ​

ts
size: [number, number, number];

Across, up and deep, at the scale it is drawn

unit ​

ts
unit: {
        meshes: number;
        draws: number;
        triangles: number;
    };

What the model costs as a unit: its meshes, draw calls and triangles