This is driving me nuts.
If I try to play my game in the Unity Editor I get choppy playback even with few scripts running and 250 fps. The framerate doesn’t change, I just get these quarter-second pauses at a regular interval.Everything stops during these pauses including audio playback. If I have more scripts running or action happening the interval is shorter (more frequent skips). The pauses happen once a second at 60fps with all scripts running and lots of action on-screen.
Notes:
-
When I publish my game the issue isn’t present at all.
-
Nothing is being output to Debug when this occurs.
-
The problem was worse (more frequent skips) before I commented out the Debug.DrawLine calls which are part of the Locomotion System.