Lighting in my 2D game is slowing it badly on Android mobile
I am using Realtime ligting in my 2D mobile android game as Baked lighting is not possible with sprites as per my knowledge. As Realtime lighting is updated every frame, its making my game performance too slow. Is there any way around it. I have changed the quality setting also for android in Unity Project settings, but still no luck. Is it possible to avoid Realtime lighting to update every frame for my static objects. Note: I am using point light.
Ins$$anonymous$$d of real-time lighting, you can bake a lightmap. If you have shadows, then turn them off, or use old-school techniques like blob shadows.
is it possible with 2D sprites. If its possible it will solve my problem. Can you direct me to some links
I'm wrong. SpriteRenderers can not bake lighting. I don't know what I was thinking.
Answer by sunvoltizer · Oct 07, 2015 at 09:42 PM
@jessespike I solved my problem. OnBecameVisible and OnBecameInvisible are the way to go for me.