0 votes

Look at this mess:

mess

Since I'm using SmartShape2D for some of my levels and I want to make a very colorful game, the path and background need to be different colors. The only solution I have is to put a bunch of sprites around the shape, 32x32 textures that are just one color.

In this particular level the performance is terrible. I have about forty sprites around the shape and it gets really laggy in areas. Does anyone know any other solution for this? I can't even use filled SmartShape2Ds because I need collisions, so any help would be appreciated.

in Engine by (37 points)

Are those Light2D nodes? Light2D rendering will be slow if large sprites are lit, especially if you have multiple lights. This is because each light causes a new rendering pass to be performed. This is no longer an issue in Godot 4.0 since lighting is single-pass there, but lighting will remain multi-pass in 3.x for technical reasons.

If you're using Light2D nodes, try increasing Scissor Area Threshold in the Project Settings.

OMG you're my savior, I never would've guessed it was because of the lights. Godot has some awesome features coming in 4.0 for 2d, I think I have to wait to make the game I'm working on.

Please log in or register to answer this question.

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.