/** * One upload budget per rendered frame for the GPU path's section staging, * shared by several `SplatClipMesh`es so their section ends (which tend to * coincide) do not burst the upload path together. * * Each mesh's `update` queues it for staging; once a mesh updates again, * the previous frame's queue is served from one budget, starting with a * different mesh every frame so none starves. A mesh without an explicit * budget gets a private one with the default size. * * @example * ```ts * const staging = new SplatClipStagingBudget(); // 4 MB per frame * const meshes = clips.map((clip) => new SplatClipMesh(clip, { renderer, staging })); * ``` * * @experimental The API may change in a minor release. */ export declare class SplatClipStagingBudget { /** Bytes handed out per rendered frame. */ readonly bytesPerFrame: number; /** Members queued during the current frame, in update order. */ private queued; private turn; constructor(bytesPerFrame?: number); /** Hands one frame's budget to the queued members, starting at a rotating one. */ private flush; }