0 votes

so i have light2ds
all values are default (except mode which is set to mix) and shadows are off
yet, when i place too many of them (~10) my fps drop heavily

with no lights
enter image description here

with 10 of them

how can i make it so this doesn't happen/so that it has a lesser impact on the fps

Godot version 3.4.4
in Engine by (103 points)
edited by

dynamic lights are very resource intensive specially in godot 3 (in godot 4 this has been reworked iirc)
your best bet would be to reduce the number of dynamic lights you have, or have a baked lightmap instead
seeing your screenshots I would drop lights altogether and use shaders instead

Baked lightmaps are only available in 3D, not 2D.

1 Answer

+3 votes

Consider using Sprite with additive blending (CanvasItemMaterial) instead of Light2D when possible. It's much cheaper to render an additive sprite than it is to render a 2D light, especially in Godot 3.x where every 2D light implies an additional render pass.

by (12,717 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.