How to fix stuttering frame issue?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By bobowitz
:warning: Old Version Published before Godot 3 was released.

I’ve been having a problem where the game will flicker back and forth between the current frame and the previous frame, producing a “stuttering” effect. It typically resolves itself, but it takes 5-10 seconds after opening the game to do so.

I couldn’t find anybody else having the same issue. There were some threads about stuttering with KinematicBody2D, but my problem occurs universally, on everything drawn on the screen.

Here’s what I’ve tried:

  • using _fixed_process() instead of _process()
  • disabling f.lux
  • exporting the game and running it outside of the editor

All suggestions are welcome. Thanks for reading.

EDIT: I’m using Godot version 2.1 on Windows, this happens in full screen and in windowed, I’m using viewport scaling

EDIT2: Looks like the problem was caused by vsync, turning it off fixed everything.

Some systems seems to suffer more than others and some solutions work for some but not for all…

Also, if you can specify your Godot version and OS, and if just the editor or exporting for release too, windowed, full screen, stretch modes…, more people may be able to suggest solutions.


That said, try turning off vsync and play with your graphic card settings while waiting for more answers.

eons | 2017-01-05 02:51

Hmm, turning off vsync appeared to work. That’s weird because I thought I remembered trying that before. Thanks for the tip.

bobowitz | 2017-01-05 03:02

Which kind of stuttering is it? I have one where half of frames (in 60 frames) show the previous frame, causing epileptic flickering, but ONLY when the window is maximized, vsync on or off.

Zylann | 2017-01-05 13:09