0 votes

I am using three Light2d nodes in one scene. It works fine in the editor and when imported to a phone with 6gb of ram. When tried on a phone with 2gb of ram the frame rate has drastically gone down. I have tried by disabling the Light2D nodes and then it worked smoothly on both devices. Is that a problem with Light2D nodes? How can this be optimized for better performance?

in Engine by (74 points)

1 Answer

0 votes
Best answer

There isn't much you can do about speeding up Light2D on slow devices. You could replace Light2D with sprites that use an additive blend mode, but these can't cast shadows and will look different from actual lights.

Just make sure to use the GLES2 renderer so you can benefit from 2D batching and light scissoring optimizations.

by (9,376 points)
selected by
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 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 webmaster@godotengine.org with your username.