• 2D
  • light freezing

i created a tree (plant/nature) like a area2d with its colliiders and shadow and that things.

i can put thousand of them and everything its ok

but when i attached a light for make it pretty at night, 8/9 of this trees together freeezes the image and looks lagging.... is this normal? am i doing something wrong? any way to optimize this?

Probably because the light node is more performance intensive, so many of them are lagging it up. Its probably normal, I think most dynamic lighting engines (2D or 3D) have limits on lighting due to the processor complexity.

What you might be able to do to get something similar without using lights is using an additional Sprite node instead of a light. Then in this sprite you can assign it a glow texture and set the CanvasMaterial mode to add, which should give a similar effect to the light node without as much of a performance hit.

@TwistedTwigleg said: Probably because the light node is more performance intensive, so many of them are lagging it up. Its probably normal, I think most dynamic lighting engines (2D or 3D) have limits on lighting due to the processor complexity.

What you might be able to do to get something similar without using lights is using an additional Sprite node instead of a light. Then in this sprite you can assign it a glow texture and set the CanvasMaterial mode to add, which should give a similar effect to the light node without as much of a performance hit.

i sure will try that!!!

i think its size light issue, because i attached lights in the bullets... hundred of little bullets works pretty good, but ten biiiiig lights get freezing :bleep_bloop:

Lights are really expensive. You probably don't want more than a couple in the scene at once if you want high frame rates.