Framerate drops when approaching lit objects and VSYNC is enabled
I'm having a very strange problem. I have a scene that consists of a room with several objects and 7 realtime lights, 3 spotlight and 4 point, all of them cast shadows (I intend in baking the scene for performance later). When the camera shows a lit object at a short distance the framerate goes from 60fps to 30fps if VSYNC is on, even if it's on low settings. If I disable VSYNC the game stays on 60fps.
I'm aware that many dynamic lights have a huge impact on performance, but in this case it's only when vsync is on. If I disable VSYNC the game runs between 70-60fps. If I enable it the framerate drops to 30fps when approaching lit objects.
What's happening here? What is Unity doing?
Comment