Added portal strict flag to all lights missing them. Portal strict ensures lights don’t load outside of the current rendered room bound or behind a culling plane. Without that flag, lights ignore roombounds/occlusion planes/culling and render no matter what, regardless of being visible or not.
Because Skyrim has a very tight light limit (7 point lights, 4 shadow casters per cell, counting spells and torches), every single light rendered increases the risk of flickering, as causing noticeable performance drops when you have a lot. Additionally, shadow casters don’t work properly without the flag period, even the uesp ck wiki says the flag is mandatory for them. Fixing the flag reduces performance drops in areas with lots of lights and reduces the odds of flickering causing by overlapping lights outside the roombounds.
The performance improvement should be especially helpful for consoles.

Attached Files:
lightfix.esp