dxgldotorg / dxgl

DXGL DirectX-to-OpenGL Wrapper source code
https://dxgl.org
GNU Lesser General Public License v2.1
193 stars 16 forks source link

Vsync tearing in X11 #13

Open GranMinigun opened 1 year ago

GranMinigun commented 1 year ago

Running Might and Magic VI (without GrayFace's patch) through Wine in X11 session. Enabling vsync limits the framerate, but presentation still heavily tears, roughly around the same place. Enabling compositing eliminates tearing, but that's two vsync mechanisms fighting each other, which leads to stutter and increased latency. Using WineD3D is not an option for me, as it ignores vblank_mode env. var. and doesn't have the ability to scale output. Not sure what other games or demos I could run to check if it's a general issue.

GPU is integrated Intel HD Graphics 630 (Kaby Lake). The monitor is running at 75 Hz, but the problem persists in 60 Hz mode too.

Configuration file:

[display]
ScalingMode=2
FullscreenWindowMode=0
VSync=2
UseSetDisplayConfig=true

[scaling]
ScalingFilter=1

And performance graph, if it's anyhow useful: Screenshot_20221015_153505