What it does

An Occlusion Query asks the GPU about visibility, such as whether geometry is hidden. Its result can determine later rendering work. When the result is read also matters for performance.

Figure: Conceptual relationship: Query geometry → Count visible samples → Decide later work
Figure: Conceptual relationship: Query geometry → Count visible samples → Decide later work

How to use it

An occlusion query asks the GPU about visibility and can inform later rendering. Unlike baked static occlusion, it requires API-specific result and latency management.

A concrete example

A simple proxy can estimate whether complex geometry behind a wall is visible. Immediately blocking the CPU for the result can disrupt CPU/GPU overlap.

How to check it

  1. Check query conditions and read timing, including rapid camera changes and inaccurate proxy bounds.
    Separate frustum, occlusion and bounds
    Separate frustum, occlusion and bounds
  2. Compare query overhead against rendering actually avoided.
    Separate frustum, occlusion and bounds
    Separate frustum, occlusion and bounds

Limitations

Immediate readback can stall; this differs from baked occlusion culling.

References