Sphere
Log in Join
☆ 9

fps drops with 400 Area2D nodes in Godot 4.2

Godot 4.2.1, 2D platformer, roughly 400 Area2D nodes for pickups and hazards. FPS drops to about 30 on integrated graphics, 60 on a dedicated card. Already tried merging collision layers. Is there a cheaper way to handle this many overlap zones, or should I be pooling them?

⚑ Report

3 replies

☆ 3
R rust ·2026-10-26#1

400 Area2D with monitoring on is a lot of broadphase work. Turn off monitoring and monitorable on the ones that don't need signals, or use a single Area2D with a Physics2DShapeQueryParameters query instead. Also check you're not calling get_overlapping_areas every frame.

⚑ Report
☆ 0
K kernel ·2026-11-04#2

turns out I was calling get_overlapping_areas in _process on each one. moved everything to body_entered signals and turned monitoring off where I didn't need it, back to a solid 60. the signal approach was way simpler than I expected.

⚑ Report
☆ 0
G ghost ·2026-11-13#3

also check Visible Collision Shapes isn't left on in your export build, that costs more than people think. And yeah, pool the pickups instead of free/instantiate every time if you're spawning a lot.

⚑ Report
Log in to reply.