Documentation
    Preparing search index...

    Interface LiveResourceCounts

    A reading of §83's live-resource accounting, as the caller's packages report it.

    The first five fields are exactly the five zero-argument readers @fourjs/geometry and @fourjs/render export, in that order: liveGeometryCount(), geometryMemoryBytes(), liveTextureCount(), liveRenderTargetCount(), textureMemoryBytes(). The optional material and solver-handle fields are filled the same way from @fourjs/materials and @fourjs/physics when the caller can see those packages.

    bufferBytes and textureBytes are byte totals, not per-population splits: textureBytes covers textures and render targets together, because that is how textureMemoryBytes() is defined (§84 names two memory counters, and a target's attachments are textures). The instance counts stay separate, so a report can still say which population grew.

    interface LiveResourceCounts {
        bufferBytes: number;
        geometries: number;
        materials?: number;
        renderTargets: number;
        solverBodies?: number;
        solverColliders?: number;
        solverHandles?: number;
        solverJoints?: number;
        textureBytes: number;
        textures: number;
    }
    Index
    bufferBytes: number

    Bytes held by those geometries — §84's bufferMemory.

    geometries: number

    Live, undisposed geometries.

    materials?: number

    Live, undisposed materials. Optional: @fourjs/materials is outside this package's dependency set, so the caller passes the count it already has.

    renderTargets: number

    Live, undisposed render targets.

    solverBodies?: number

    Live solver body handles. Optional; kept beside LiveResourceCounts.solverHandles so existing call-sites that already filled this field keep working.

    solverColliders?: number

    Live solver collider handles. Optional: @fourjs/physics is outside this package's dependency set.

    solverHandles?: number

    Live solver handles (bodies + colliders + joints, or whatever the caller accounts as one population). Optional: @fourjs/physics is outside this package's dependency set (A-5 follow-up: materials + solver handles).

    solverJoints?: number

    Live solver joint handles. Optional: @fourjs/physics is outside this package's dependency set.

    textureBytes: number

    Bytes described by textures and targets — §84's textureMemory.

    textures: number

    Live, undisposed textures.