doitsujin / dxvk

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

[D3D11] Sleeping Dogs: Definitive Edition incorrect resolution while in Exclusive Fullscreen #1694

Open lextra2 opened 4 years ago

lextra2 commented 4 years ago

The games resolution is incorrectly increased when played in Fullscreen (Exclusive). (This game does not have a Borderless Fullscreen option). This results in part of the image being cut off, which you can't see in the image directly. See the 2 images for comparison. Also, the incorrect resolution while in fullscreen is reported in the d3d11 log file. Tested on Windows 10 2004 (Not sure if this issue also occurs on linux)

Native DirectX 11, correct resolution (2560x1080) 307690_20200717184256_1

DXVK 1.7, incorrect resolution (2576x1100) which results in a zoomed in view since part of the game is rendered outside of my monitors supported resolution. 307690_20200717184344_1

Software information

Sleeping Dogs: Definitive Edition, All graphical settings on highest possible, except for motion blur (disabled) and anti aliasing (normal = FXAA)

System information

Log files

SDHDShip_d3d11.log SDHDShip_dxgi.log

doitsujin commented 4 years ago

Friendly reminder that Windows is not our primary target platform and not really supported. This problem doesn't occur on Linux.

Probably has something to do with window style crap that isn't really documented anywhere so I have no idea how to fix this. Maybe @Joshua-Ashton does.

lextra2 commented 4 years ago

This problem doesn't occur on Linux. Probably has something to do with window style crap that isn't really documented anywhere

I figured as much, thanks anyway.

Blisto91 commented 2 years ago

@lextra2 Friendly necro ping. Is this still an issue?

pchome commented 2 years ago

IIRC this is general issue for ultra-wide monitors, saw this in many games. Also some games sometimes count something looking like games window title and borders size. This is from other SD:DE issue's attached dxgi log file:

Buffer size: 1928x1092

Well, for such games I usually prefer to use 16:9 wine virtual desktop or gamescope (when I need fully hide my screen original resolution/aspect_ratio). Good if it can be fixed in dxvk, but can be wine issue.

lextra2 commented 2 years ago

@Blisto91 I'll let you know later when I'm home

lextra2 commented 2 years ago

Unfortunately this is still an issue with 1.10.3

dx11

dxvk

Buffer size: 2576x1100

SDHDShip_d3d11.log SDHDShip_dxgi.log

paveldrobny commented 1 year ago

I fixed the problem with aspect ratios by downloading the Borderless Gaming program. Step 1 - press Alt + Enter to make the game in window mode; Step 2 - In Borderless Gaming, move the file with the name Sleeping Dogs: Definitive Edition[PC64-Ship...] to the right with the arrow; Step 3 - click on the last button in the center (the fourth button). These steps probably need to be done every time you start the game.

Blisto91 commented 1 day ago

@lextra2 Can you try again with this build? https://github.com/doitsujin/dxvk/actions/runs/12008516626

lextra2 commented 1 day ago

I can, in January. I have no desktop until then.

Blisto91 commented 13 hours ago

@lextra2 No need anyway. I was given a explainer of the issue and it isn't directly related to exclusive fullscreen functionality itself.