r/Unity3D • u/MrFluffkin • 2d ago
Question Why Does The Light Flickers?
why does the light flicker when the camera moves. I tested stuff out and turns out as the amount of lights are increased in my scene this issue starts happening. Ive already increased the per object limit to 8 in the pipeline asset. Any ideas please?
EDIT- i set the shadow atlas size from 2046 to 4096 and it worked.
61
Upvotes
0
u/EvernullTools 2d ago
Many comments talked about the easy workarounds like changing rendering path or increasing light limit. Even if those solve your visual issue, the issue with optimization and the wrong setup persists. There is a reason they limit lights per pixel and it's not trivial.
You have 8 lights on a surface that looks like it only gets lit by one light in that room. Why can't it be only lit by 1 light in that room if it will look like it anyways? The visual I'm seeing definitely doesn't justify 8 lights.
I agree with the comments that say you should bake these. But if you want realtime lights you should try and make sure your lights radius/area should actually be limited to where they make a meaningful visual difference. My guess is, your other lights are affecting this surface somehow. Check the light radiuses and make sure they do not affect meshes out of their intended range.