THREE.JS / FOUNDATIONS 40
Split the world into queries.
The official Octree narrows triangle collision tests while a transferable worker index narrows a moving agent field. Pick the query and watch broad phase versus exact tests.
- index
- —
- cells
- —
- candidates
- —
- hits
- —
- build ms
- —
- query ms
- —
- draw calls
- —
- triangles
- —
- FPS floor
- —
- FPS balls
- —
Initializing
—
Starting the renderer, Octree, and worker index…
The official Octree indexes triangles; the worker grid indexes moving object positions.
Drag to orbit · FPS mode: WASD + Space + throw button · press R to reset · rebuild after changing leaf size
Next: WebXR rendering
Octree + worker error
LAB 40 / SPATIAL QUERY BOUNDARIES