@relu-interactives/spatial-ecs
@relu-interactives/spatial-ecs / index / estimateObjectBytes
Function: estimateObjectBytes() ​
ts
function estimateObjectBytes(root): number;Defined in: streaming/memory.ts:9
Estimated GPU bytes an object's meshes hold: every attribute and index buffer, and every texture at 4 bytes a pixel with a third more for mipmaps. Shared geometry and textures are counted once per call. An estimate: the GPU can compress or pad.
Parameters ​
| Parameter | Type |
|---|---|
root | Object3D |
Returns ​
number

