Hi guys, recently I noticed a stuttering in my game ONLY when running the game after building. While running in the editor it works fine. Through process of elimination I figured out the stuttering was coming from the way I am doing day / night cycles. The day / night cycle is done by a gameobject in the center of the scene, with a sun (directional light) so many meters from the center pointing at the center. The center game object (axis) is then slowly rotated over time to produce day and night and show the shadows moving across the ground.
I have eliminated everything from the scene except 1 player object (low poly) and the terrain but the stutter still happens. Once i disable the object that rotates, it stops stuttering. Any ideas what could cause this or how I can fix this?
I even set graphics to low with shadows at minimal and so on but it still stutters.