Skip to content

placeStale beta ​

Function of @v12-engine/render

ts
export declare function placeStale(data: Float32Array, slot: number, stride: number, kept: number, matrices: Float32Array, from: number): boolean;

Whether the place slot of a pass's kept copies (data, stride floats a place, the matrix first) must be written with the copy whose matrix is at from in matrices: a copy that stands where the one kept there stood is taken as the same (what moved is written, what did not is not sent again), but a place past the kept of the last frame holds nothing to go by: never written, its zeros pass for a copy at the origin (a mesh made in the world's own places, the water's, culled its first frame and never drawn after), or written before a touch it did not see. What the renderer's keep asks of each copy it keeps, unless the batch was touched (then every one is written)