I'm building a virtual exhibition platform in unity. There are about 50 stalls and I used a directional light and 124 point lights light up the scene. I didn't use any real time lighting, only baked lighting is used. But at runtime frames get dropped. when I inactivate all pointlights it works smoothly. How can I optimize lights?
How to optimize lights in Unity
1.4k views Asked by Intern At
2
There are 2 answers
0
On
124 Point Lights that is a LOT of lights, but you could use Deferred Rending path on your Camera (but if you need VR I'm not sure its supported).. You can set the Point Lights to be Baked, use Baked lighting and light probes instead. Set everything that won't move in your scene to be Static objects (very top right corner box). also remember to go into Rendering -> Lighting and Generate the Lighting and look at the options presented there. Light probes video
You can improve your performance by doing the following,
Alternate way : Build and bake each stall separately in Blender or Maya. Then add them to unity. This way you don't need to add that many point lights and bake.