Skip to content

Docs: Clarify that instance_set_ignore_culling disables layer culling#117158

Merged
Repiteo merged 1 commit into
godotengine:masterfrom
Nallebeorn:fix-instance-set-ignore-culling-docs
Mar 11, 2026
Merged

Docs: Clarify that instance_set_ignore_culling disables layer culling#117158
Repiteo merged 1 commit into
godotengine:masterfrom
Nallebeorn:fix-instance-set-ignore-culling-docs

Conversation

@Nallebeorn
Copy link
Copy Markdown
Contributor

The documentation for RenderingServer.instance_set_ignore_culling enumerates that it disables both frustum and occlusion culling, but it actually also disables layer culling. This caught me by surprise since it was undocumented.

Reference:

if ((LAYER_CHECK && IN_FRUSTUM(cull_data.cull->frustum) && VIS_CHECK && !OCCLUSION_CULLED) || (cull_data.scenario->instance_data[i].flags & InstanceData::FLAG_IGNORE_ALL_CULLING)) {

Copy link
Copy Markdown
Member

@Calinou Calinou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@Repiteo Repiteo modified the milestones: 4.x, 4.7 Mar 11, 2026
@Repiteo Repiteo merged commit 197b37b into godotengine:master Mar 11, 2026
7 checks passed
@Repiteo
Copy link
Copy Markdown
Contributor

Repiteo commented Mar 11, 2026

Thanks!

@akien-mga akien-mga changed the title Docs: Clarify that instance_set_ignore_culling disables layer culling Docs: Clarify that instance_set_ignore_culling disables layer culling Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants