- Home /
Slower realtime shadow update speed? Possible?
Hello, so I am making a scene with multiple realtime lights and shadows but if there are too many lights the scene obviously becomes too laggy. So what I'd like to know is if it's possible to calculate some shadows slower i.e. instead of calculating the shadow every frame it calculates shadows once every second. The idea behind it is that if it calculates shadows once every second it wouldn't be as performance heavy, so less laggy. Also baking the shadows is not an option as I need to turn lights on and off.
So is it possible, would it improve performance and how would one do it?
Answer by FortisVenaliter · Jul 01, 2015 at 07:05 PM
No, it's not. The reason being that the shadows are rendered in frame-space, not world-space. So, that means that if your camera frame updated, it would use the shadowing from the previous frame where the camera may have been looking a completely different direction. Since the shadows use a depth buffer, that data would be incoherent unless you were using a static scene and camera.
Ok thanks. Just wanted to know if it was even an option cuz in theory if it was possible it would skyrocket the performance. But I guess I'll try to find another way to boost the performance.