protonscr

Unreal Tournament 2004: Cannot tab back into the game

dxvkopen d3d9windows
doitsujin/dxvk#2605 · opened 2022-04-12 by Calypto · updated 2023-05-03 · 12 comments · github
CCalypto 2022-04-12 github

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

  • GPU: 6800 XT
  • Driver: 21.4.1 / 2.0.179
  • DXVK version: 1.10.1
  • OS: Windows 7 x64

Apitrace file(s)

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

Log files

KK0bin maintainer 2022-04-12 github

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

CCalypto 2022-04-12 github

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.

BBlisto91 2022-04-12 github

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.

CCalypto 2022-04-12 github

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

WWinterSnowfall 2022-04-15 github

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.

BBlisto91 2023-04-04 github

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

KK0bin maintainer 2023-04-04 github

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

CCalypto 2023-05-03 github

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

KK0bin maintainer 2023-05-03 github

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

CCalypto 2023-05-03 github

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

KK0bin maintainer 2023-05-03 github

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

CCalypto 2023-05-03 github

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.

Nothing extracted yet.