Skip to content

Viewport culling to reduce draw load

Frustum culling avoids submitting geometry that cannot appear on screen. This sample visualizes which objects remain in the working set as you pan and zoom, tying directly to Lesson 8 — Optimize performance.

Use it as a reference when you profile CPU/GPU time on boards with thousands of shapes.

We can reduce the number of draw calls with culling, see: Performace optimazation

total: 0   culled: 0   Add 500 circles

Released under the MIT License.