doitsujin / dxvk

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

Watch Dogs 1 doesn't respect minimized state #4039

Closed Tiagoquix closed 5 months ago

Tiagoquix commented 5 months ago

Software information

Watch Dogs 1 (Steam version), High settings. Game only supports DX11. (https://www.pcgamingwiki.com/wiki/Watch_Dogs#API)

Problem: mouse clicks seem to pass through windows and translate as inputs to the game even if the game is minimized. Easily reproducible. It's even possible to hear the game audio when the game thinks it is in the foreground again, when in reality it is minimized.

System information

Apitrace file(s)

4038

Log files

Proton log: https://0.jaegers.net/?704347fe24125b32#AhQT22RipzKNESdgU6Da2iUmRGJoMuVrwG2DzmfatQfx

Additional information

Game launch options: PROTON_LOG=1 DXVK_FRAME_RATE=60 gamemoderun %command% I suspect this is a cross-platform issue, but I'm not sure.

Blisto91 commented 5 months ago

Do you know if it behaves this same way with wined3d?

Tiagoquix commented 5 months ago

Do you know if it behaves this same way with wined3d?

How can I test with wined3d?

Blisto91 commented 5 months ago

Add PROTON_USE_WINED3D=1 to your launch options

Tiagoquix commented 5 months ago

Yes, the same happens with WineD3D.

Game launch options: PROTON_USE_WINED3D=1 PROTON_LOG=1 DXVK_FRAME_RATE=60 gamemoderun %command% New log: https://0.jaegers.net/?1d460df694b8ff64#AR9WguyJYEpDY7zCW2axLbtomHcnab4PDft1vEgyaDV6

What I noticed is every time I minimize the game a very small pop-up titled "Ubisoft Connect" appears in the top left corner of the screen, as if it was a system tray pop-up on Windows. It disappears after some time.

While the issue is easily reproducible, it's inconsistent.

Tiagoquix commented 5 months ago

@Blisto91 An API trace would be useful for this bug report? If yes, DXVK or WineD3D?

mbriar commented 5 months ago

I doubt apitrace will be useful here. Probably unrelated to D3D and rather some window management bug in wine. Or even some desktop compositor or xwayland problem.

K0bin commented 5 months ago

If the same issue happens with WineD3D as well, it is indeed probably not our bug like mbriar says. Window management problems are difficult to debug.

Blisto91 commented 5 months ago

The best check would be if you could get it to act the same on Windows with dxvk. And check that it doesn't happen without of course. Though I am also thinking that might be unlikely

Tiagoquix commented 5 months ago

Considering this game is a PC console port and also has other quirks...

https://www.pcgamingwiki.com/wiki/Watch_Dogs#Input

  • Uses forced mouse acceleration.
  • No true mouse input as the mouse emulates an analog joystick.
  • Implemented with a software cursor, which is susceptible to framerate changes and will feel different from the normal OS/hardware cursor.

Then yeah, it's probably an issue from the game itself and not from DXVK or Wine. Thank you for your support. Closing as invalid.

mbriar commented 5 months ago

Doesn't really sound like a game bug to me, I doubt this happens on windows. But I also don't think it's a DXVK bug.

Tiagoquix commented 5 months ago

FYI, was able to reproduce this on Assassin's Creed II too. Seems to always happen when using the "Peek at Desktop" button on KDE Plasma.