doitsujin / dxvk

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

[D3D11] Titan Quest Anniversary Edition wrong refresh rate video mode (on DisplayPort) #2607

Open eLPuSHeR opened 2 years ago

eLPuSHeR commented 2 years ago

Titan Quest Anniversary Edition (with all DLCs). Running under W10 19044.1645 x64. Using latest DXVK release. It works great for my RX480 card (60Hz) but for some weird reason instead of 1920x1080x165Hz, it sets 50Hz mode.

Reports with no log files will be ignored.

Software information

Titan Quest Anniversary Edition (with all DLCs).

System information

Apitrace file(s)

Log files

doitsujin commented 2 years ago

Yes, this is a somewhat common issue on Windows and I don't know why it happens. We query available display modes from existing win32 APIs and expose them to the application in pretty much the same way that native DXGI would. Any help in resolving it without breaking wine would be appreciated.

lextra2 commented 2 years ago

On windows, just delete all resolutions from your EDID with CRU, so the only one left is 1920x1080@165hz (inside CTA-861)

WinterSnowfall commented 1 day ago

To add some context here (and a trace), it looks like the game confuses the numerator with the denominator and sets them the other way around. That is causing dxvk to pick the lowest supported refresh rate, but that's similar to native behavior.

WineD3D somehow still picks the correct one.