Realtime GI has huge performance impact in custom SRP with all baked and realtime GI disabled.

I have a custom rendering pipeline, all baked and realtime GI is disabled through use of SupportedRenderingFeatures.active.

However, I am getting an extremely high performance impact every few frames rotating a directional light. This is having a extreme effect on my frame rate, despite the fact that realtime GI is completely disabled.

It happens in all scenes, and seems completely independent of any lighting settings.

I can not find any way to stop this happening either.

Has anyone run into this and found a fix?

Surely this shouldn’t be running at all when there is no realtime GI baked, and when realtime GI is completely disabled?

It looks like Enlighten isn’t disabled. Did you set Rendering.SupportedRenderingFeatures.enlighten to false?

Are you passing the directional light into the GI system via Unity - Scripting API: Experimental.GlobalIllumination.LightmapperUtils.Extract (unity3d.com)? More info here Unity - Scripting API: Experimental.GlobalIllumination.Lightmapping.RequestLightsDelegate (unity3d.com)

Yep, I set SupportedRenderingFeatures.enlighten to false, as well as any other builtin environment lighting to false in the constructor of my RenderPipeline class.

I can tell that other features are correctly disabled, as the environment lighting, fog, etc do not show up in the “Window/Rendering/Lighting” section.

7245386--872801--upload_2021-6-17_8-52-31.png

I am also not using any of the APIs you mentioned above. (Or any others related to Enlighten or Lightmapping)