X Tutup
Skip to content

Remove compositor.h include from world_3d.h.#111402

Merged
Repiteo merged 1 commit intogodotengine:masterfrom
Ivorforce:world-3d-no-compositor
Oct 8, 2025
Merged

Remove compositor.h include from world_3d.h.#111402
Repiteo merged 1 commit intogodotengine:masterfrom
Ivorforce:world-3d-no-compositor

Conversation

@Ivorforce
Copy link
Member

@Ivorforce Ivorforce commented Oct 8, 2025

I've profiled a random compile unit (audio_stream_editor_plugin.json). As a Node3D inheritor (which is somewhat common), it includes an include path to world_3d.h. I initially tried to remove the world_3d.h include, but it turns out, most Node3D make active use of it.

world_3d.h's build cost is mostly caused by compositor.h, which can be more easily removed. It accounts for 10% of total build time in this compile unit, through render_data.h > render_scene_data.h > script_language.h > doc_data.h.

@Ivorforce Ivorforce force-pushed the world-3d-no-compositor branch from 347302b to 207e8c1 Compare October 8, 2025 09:25
@Repiteo Repiteo merged commit 4bb6121 into godotengine:master Oct 8, 2025
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Oct 8, 2025

Thanks!

@Ivorforce Ivorforce deleted the world-3d-no-compositor branch October 8, 2025 19:12
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.

2 participants

X Tutup