Skip to content

build/src/sdlayer.cpp: Add new CVARs r_glfinish & r_finishbeforeswap.

Mitchell Richters requested to merge (removed):Engine_StutterFixes into master

From my local testing, the frequently reported stutting issues go away when glFinish() is called after swapping buffers. This especially helps with r_vsync 1, which this also makes work again.

Overall, there is a slight impact on fps, however I'm getting well over 750 fps at 3840x2160, that's enough I feel.

  • glFinish() after swapping stabilises stuttering issues and has minimum performance impact.
  • glFinish() before swapping stabilises should be better but sometimes isn't, and is needed for KMT not to tear. Offer as an option.
Edited by Mitchell Richters

Merge request reports