doitsujin / dxvk

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

Unreal Tournament 2004: Cannot tab back into the game #2605

Open Calypto opened 2 years ago

Calypto commented 2 years ago

Hello, I apologize for posting a Windows issue, but when using dxvk with UT2004 I am unable to maximize the game after alt-tabbing when playing fullscreen. The game is still running (audio plays), but I can't tab back in.

Software information

Unreal Tournament 2004, both 32 and 64 bit executables when using dxvk. I tried both 32 and 64 bit d3d9 dlls for the respective executables.

System information

Apitrace file(s)

https://mega.nz/file/n9lCmTzC#4EW-FPotPU2WosMTHn1zzSeYcI8tNOVUt12qn4DtiHQ

Log files

K0bin commented 2 years ago

What do you mean, you cannot alt-tab back in? What actually happens?

Please also try the latest master version of DXVK. You cna find a build here: https://github.com/doitsujin/dxvk/suites/6067454616/artifacts/209680631

Calypto commented 2 years ago

The game minimizes to the task bar and continues running, but I can't tab back into the game. Neither clicking it from the task bar or alt-tabbing will maximize it. I have to kill the process to close it and restart the game. I just tried the build you linked and unfortunately it does the same thing.

Blisto91 commented 2 years ago

Does it help if you make a file called dxvk.conf next to the exe and insert d3d9.enableDialogMode = True ? To make sure it's picking up the conf file you can enable the hud in it also.

Calypto commented 2 years ago

Sadly that did not help. I enabled HUD as you suggested to confirm it's reading the conf.

WinterSnowfall commented 2 years ago

I remember not being able to alt-tab while using d3d8to9 and dxvk either, with the original 32-bit version of the game (which only has d3d8 support). And it doesn't provide a non-exclusive or windowed fullscreen mode to work around the problem, sadly. I always thought it was a Wine problem, since AFAIK WineD3D also doesn't handle alt-tabing here very well.

Edit: Just FYI, alt+tabbing now works fine in Wine, so it looks like it's a Windows only issue.

Blisto91 commented 1 year ago

Edit: actually nevermind didn't realize you are on Windows 7 so no new changes will work here.

K0bin commented 1 year ago

Please reopen in case the issue exists on Windows 10/11 or Linux.

Calypto commented 1 year ago

It still happens on Windows 10 21H2 and DXVK version 2.1.

K0bin commented 1 year ago

Please test the very latest master and set up a config file with the contents: d3d9.deviceLost = True

Calypto commented 1 year ago

Sorry, by latest master you mean 2.1? I tried with d3d9.deviceLost = True and I still couldn't tab in.

K0bin commented 1 year ago

Sorry, by latest master you mean 2.1?

No, I mean the development version as of 20 minutes ago. https://github.com/doitsujin/dxvk/suites/12644635683/artifacts/677448336

Calypto commented 1 year ago

Thanks for the link. Now when tabbing out, the game gets stuck on the last frame before tabbing out. If I try to alt tab again the game minimizes. If I try to maximize the window, the game crashes.