I’m going through the MegaLights code at the moment. As far as I’ve got, I understood that Megalights makes heavy use of CulledLightGrid to pick the light candidate for a given pixel.
In the case where the number of local lights affecting a cell of CulledLightGrid is bigger than MaxCulledLightsPerCell, how does the CulledLightGrid select the MaxCulledLightsPerCell lights to store in the cell? Is it arbitrary or it depends on the contribution of the lights? Also, does this behaviour change when MegaLights is on?