doitsujin / dxvk

Vulkan-based implementation of D3D8, 9, 10 and 11 for Linux / Wine
zlib License
13.22k stars 851 forks source link

Wrong monitor refresh rate. #827

Closed artivision closed 5 years ago

artivision commented 5 years ago

Good day. DXVK sets by itself my monitor's refresh rate to the maximum (120hz). Why please???

doitsujin commented 5 years ago

Maybe because the game asks DXVK to do so? Why is that an issue?

artivision commented 5 years ago

You may not now this but fast monitors need precise synchronization to work correctly. For example if you run any 60/120fps stable (like FFXV) or any Variable-fps game on a 144hz monitor with or without Vsync, you will feel like you only get 15fps. Yes is that of a mess without Freesync or something similar. I'm very lucky because my monitor's menu allows me to lock it at 120hz so Vsync works perfect if the game have 60/120fps stable. One with only 144hz will be out of luck until Kernel_4.21. Also wile starting FFXV, DXVK asks for the highest 144hz except if i configure the monitor for 120hz.

doitsujin commented 5 years ago

I don't understand why you think this is a DXVK bug. Games either allow you to select the refresh rate manually or ask for the highest available refresh rate, which is 144 Hz in your case.

elovin commented 5 years ago

@artivision You mean that the FPS are locked at 120fps event without VSYNC ?

Are you using an AMD GPU by any chance ?

Also are you sure you disabled vsync and the compositor ?

Because in my case Bf1 seems to be locked at 60 fps (60 Hz is my monitors refresh rate) (Vsync is off and the KDE compositor as well, also tried openbox), it just wasnt a problem so far, nor did I think this could be related to DXVK.

doitsujin commented 5 years ago

@elovin are you on Wayland? Locked frame rate when games use double-buffering is a known limitation of XWayland, see #806.

elovin commented 5 years ago

@doitsujin Hm no im sill using X11

Update:

Okay I just tested with gnome (usually im using plasma 5) and there it works (X11 session not wayland) so my problem is KDE plasma 5 related

doitsujin commented 5 years ago

Weird, I don't have that problem on KDE.

shmerl commented 5 years ago

@elovin: Do you have such problem with everything or just with one game? It could be a game specific issue.

artivision commented 5 years ago

Ok problem solved. People with Amd Gpus, Mesa and fast monitors, should disable Tear_Free. This just destroys Games. If your compositor does that then disable it or change compositor. I now use Xfce with default compositor and simple Vsync and i'm fine. Compton Glx back-end and similar is what you shouldn't use.