Occlusion Culling not culling objects behind sealed room (Objects/Draw Calls remain high)

Godot 4.7.2

Hi everyone,

I’m currently struggling with Occlusion Culling in my Godot 4 project and could use some advice.

  • I have fully enclosed a room with Occluder geometry (Walls, Floor, and Ceiling are all properly covered)

  • The Occlusion Culling buffer (debug view) shows the interior correctly as white/free and the surrounding walls as gray/occluded

  • Occlusion Culling is properly enabled in the project settings

  • I have completely followed the official Godot Occlusion Culling Documentation, but unfortunately, it didn’t solve the issue

The Problem: When I stand inside the room and look toward the closed walls/doors leading to the rest of the map, the performance monitors still show massive numbers for the rest of the stage:

Performance.get_monitor(Performance.RENDER_TOTAL_OBJECTS_IN_FRAME)
Performance.get_monitor(Performance.RENDER_TOTAL_DRAW_CALLS_IN_FRAME)
Performance.get_monitor(Performance.RENDER_TOTAL_PRIMITIVES_IN_FRAME)

Despite the occluder walls showing up as occluded in the depth buffer, all objects behind the walls are still being rendered and counted.

The only thing that successfully reduces the object count is lowering the far view-distance (clip distance) of the Camera3D.

Does anyone have an idea why the occluder geometry isn’t cutting off the objects behind the walls, even though the debug buffer indicates the walls are successfully rasterized?

Thanks in advance for any help!

I’m not sure what the cause of your issue is but I’m thinking that either the outside meshes somehow have their bounding box inside the room where you are standing, or the material for your walls are not opaque (but transparent) which naturally produces overdraw.

I don’t really know though.

One thing worth checking is shadows. If you have lights with shadows enabled, the meshes outside the room can still be rendered into the shadow passes, which adds draw calls even when the main view culls them. Try disabling shadows on the lights, or compare with the Rendering information in the debug view, and see if the counts drop. Also double check that the occluder has no gaps at the corners.