Skip to content

Type Alias: RenderType

ts
type RenderType = "static" | "dynamic";

Defined in: types.ts:87

How a layer expects its data to change, mapped to a WebGL buffer-usage hint: "static"STATIC_DRAW (upload once), "dynamic"DYNAMIC_DRAW (stream via setData). Purely a performance hint — setData works either way. Default "static". Set "dynamic" on layers you update every frame.

MIT licensed. WebGL2 required.