- Home /
Multiple Realtime Lights in WebGL
I am new to unity and does not know much but i am trying to make a small demo house with rooms and each room has about 2-4 lights which can be turned On or Off by clicking on them. I have about 20 point realtime lights in my game and due to which i am suffering a lot of performance issues .. I have around 2500 batches with all lights and 500 batches without any light.. On low- mid range hardware i am getting 10-15 fps.. So my question is that is it even possible to make a webgl game with this much realtime lights? Please help me if i can do something to make it playable.. Render Path is set to deferred. Frame Debugger:
You probably still have to give up real-time lighting, bake the lighting and use LightProbes to transfer lighting to non-static objects. Also, for better performance, you can opt out of shadows falling from non-static objects. You can find many tutorials on baking lighting and using LightProbe.