Documentation
    Preparing search index...

    Interface RenderStatisticsLike

    The three §84 counters a renderer produces — @fourjs/render's RenderStatistics, transcribed.

    Declared here and satisfied structurally, because this package may not import @fourjs/render (plan §3.1). The fourth instance of the duck-typed-contract pattern this repository uses across a frozen dependency matrix, after ParticleDrawable, ReplayTarget, and DebugGeometrySink; @fourjs/render's own tests pin the drift by assigning the real type to a matching shape.

    interface RenderStatisticsLike {
        drawCalls: number;
        instances: number;
        triangles: number;
    }
    Index
    drawCalls: number

    Draw calls the backend submitted.

    instances: number

    Primitive-set instances the backend submitted.

    triangles: number

    Triangles the backend submitted, instances included.