Stutter, with included scene

Hey,

I’ve been trying for a while now to get my 2D game stutter free without success, there is a constant stutter every 2-3 seconds, the stutter is less apparent the higher the framerate is but i want my game to run at a constant 60fps.

Here is a simple scene, just some sprites and an indefinitely panning camera using transform.Translate(), it has an included fps display and is capped at 60fps by default, has vsync turned off.

Why is it stuttering? Can anything be done to get this camera to pan without any stutter?

3274547–253152–Stutter.zip (967 KB)

Also, it doesn’t seem to stutter when enabling Vsync but introduces the nasty input lag, could it be that my monitor isn’t running at exactly 60hz and thus not matching my 60fps cap causing some “phasing” or stuttering every x seconds?

I’ve also noticed that when running the game in Exclusive Fullscreen mode, the stuttering is replaced by screen tearing, unfortunately Exclusive Fullscreen is not an option since I just get a black screen when launching the game on some devices like the Surface Pro.

I’m going to assume that the stuttering in Unity is simply unavoidable unless Vsync is activated (which introduces some extreme input lag), the FPS is left uncapped at exceedingly high values, or the game is ran in Exclusive Fullscreen mode and the stutter is replaced by tearing (which might be even worse).

I guess i’ll just implement all of the options mentioned above and let the players decide what they prefer but i still wonder how some games manage to run at a steady 60fps with no input lag and no stutter.