- Home /
Profiling: "FFWD Lights" costs 17% performance
The problem is that, although I only have a dozen drawcalls, "FFWD Lights" seems to be called for each object in the scene for every frame. My assumption is that Unity tries to collect lights for each game object every frame.
As I only have one directional light in the scene, is there any possibility to prevent this behaviour? I'd like to mark my objects as "always affected by light X" or something like that so Unity doesn't collect the lights again and again.
Attached is a screenshot of the profile + a screenshot of the game with stats.
[1]: /storage/temp/32238-phear_profiling_unity3d_ffwd_lights_gameshot.jpg
[2]: /storage/temp/32240-phear_profiling_unity3d_ffwd_lights.png
Don't quote me on it, but I believe there is a setting somewhere to mark a light as not important.
We are also encountering this. Has anyone reached a solution?