I’m working on a 2D project using the Universal Render Pipeline. However, I’m suffering from some low performance on various platforms. Looking at the profiler, it appears that rendering the lighting takes an excessive amount of time. We’re using the “UnityEngine.Experimental.Rendering.Universal.Light2D” or URP Light2D, not actual Unity 3D lights. Furthermore, 6 or 7 lights are only active at once. On mid-range PC’s and consoles, our frames are dropping down to 30 FPS or lower, depending on how many lights we allow in our URP asset (additional lights > per object limit = 4).
I don’t completely grasp how the experimental 2D lighting is working and affecting performance to such an extent.
I’ve attached several images of our profile/frame results and how our lighting is setup. If you need any further information, let me know.
Cheers.