Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Splinter Cell and Splinter Cell: Pandora Tomorrow: Alt + Tab issues #4657

Open
danielfrrrr opened this issue Jan 30, 2025 · 5 comments
Open
Labels

Comments

@danielfrrrr
Copy link

danielfrrrr commented Jan 30, 2025

Tom Clancy's Splinter Cell

When you press Alt + Tab and return to the game, the game window freezes (the sound continues to play). In WineD3D, there is a similar issue: the game window goes completely black (the sound continues to play).

The option d3d9.deviceLossOnFocusLoss = True/False has no effect here, except in DXVK 2.5.3 (in 2.5.3 there is a similar issue and when using d3d9.deviceLossOnFocusLoss = True, the behavior becomes the same as the issue reported here).

Tom Clancy's Splinter Cell: Pandora Tomorrow

When you press Alt + Tab and return to the game, the game window changes resolution (the sound continues to play) and you are unable to move the character via the keyboard (you can still move the camera via the mouse). In WineD3D, there is no issue.

The option d3d9.deviceLossOnFocusLoss = True/False has no effect here, even in DXVK 2.5.3.

Software information

Tom Clancy's Splinter Cell

I modify the system/SplinterCellUser.ini file manually, using these values:

Resolution=1920x1080
AudioVirt=2
Sound3DAcc=True
EAX=True
ShadowResolution=2
EffectsQuality=3
VidMem=2
EAX_Capable=True

Tom Clancy's Splinter Cell: Pandora Tomorrow

I modify the offline/system/SplinterCell2.ini file manually, using these values:

WindowedViewportX=1600
WindowedViewportY=1200

and the file offline/system/SplinterCell2.ini:

Resolution=1600x1200
AudioVirt=2
Sound3DAcc=True
EAX=True
VidMem=2
EAX_Capable=True

System information

  • GPU: AMD Radeon RX 5500 XT (RADV NAVI14)
  • Driver: Mesa 24.3.4-arch1.1
  • Wine version: wine-10.0
  • DXVK version: v2.5.3-78-g0cad97d5 (git master)

Log files

SplinterCell1-AltTab.txt
SplinterCell2-AltTab.txt

@WinterSnowfall
Copy link
Contributor

WinterSnowfall commented Jan 30, 2025

Tom Clancy's Splinter Cell: Pandora Tomorrow

When you press Alt + Tab and return to the game, the game window changes resolution (the sound continues to play) and you are unable to move the character via the keyboard (you can still move the camera via the mouse). In WineD3D, there is no issue.

For what it's worth there's no issue for me with dxvk on X11 and Wine Staging. Alt+tabbing works fine and the game will return to full-screen correctly. This might be another case where fshack gets in the way of proper swapchain resize behavior. Nevermind, I just noticed you are also on vanilla Wine.

@Blisto91
Copy link
Contributor

Blisto91 commented Jan 30, 2025

I did a quick test of the first Splinter Cell in Proton Bleeding Edge (so Wine has fshack).
When using KDE Wayland (game is xWayland) then d3d9.deviceLossOnFocusLoss = True does not prevent it from becoming a black square in the top left.
But when i tried KDE X11 the config actually prevented the above.

Tested on a RTX 4080 565.77

Edit: Of course just after writing this i try some more and now it also works in KDE Wayland with config :P

@K0bin K0bin added the d3d8 label Feb 1, 2025
@danielfrrrr
Copy link
Author

danielfrrrr commented Feb 6, 2025

Edit: Of course just after writing this i try some more and now it also works in KDE Wayland with config :P

In Splinter Cell 1, Alt + Tab in and out only works correctly in the start menu, but not in game.

EDIT: I use labwc/wlroots (and play through wine xwayland), so is there a problem with that?

In Splinter Cell 2, it doesn't work correctly even in the start menu. I realized that there is a way to return the keyboard input, but I don't know exactly how. I think you can't move the mouse after Alt + Tab or something like that. Also, as the game window does not freeze completely, you can un-maximize and maximize the window to return to normal, but not every time it works and the game window ends up getting small, freezes and is moved to the top left corner

By the way, the same problem with Splinter Cell 1 happens with Tom Clancy's Ghost Recon (2001). Pressing Alt + Tab and returning to the game freezes the window completely, even in the start menu. So it could be a general issue with D3D8 games, not just the Splinter Cell series, or it could be a issue with Ubisoft games.

@WinterSnowfall
Copy link
Contributor

So it could be a general issue with D3D8 games, not just the Splinter Cell series, or it could be a issue with Ubisoft games.

Alt+tab-ing is a common problem in many games, even on Windows. It's typically due to WSI handling and not directly related to the core of dxvk if you will (the d3d APIs and rendering).

That being said both d3d8 and 9 exhibit wonkiness in this area and the situation appears to be worse on Wayland than it is on X11, at least in relation to windows size and properly maximizing/minimizing. I can't reproduce the problem with Pandora Tomorrow for example on proprietary Nvidia & X11 - for me it simply resizes properly and works.

@danielfrrrr
Copy link
Author

danielfrrrr commented Feb 6, 2025

So it could be a general issue with D3D8 games, not just the Splinter Cell series, or it could be a issue with Ubisoft games.

Alt+tab-ing is a common problem in many games, even on Windows. It's typically due to WSI handling and not directly related to the core of dxvk if you will (the d3d APIs and rendering).

That being said both d3d8 and 9 exhibit wonkiness in this area and the situation appears to be worse on Wayland than it is on X11, at least in relation to windows size and properly maximizing/minimizing. I can't reproduce the problem with Pandora Tomorrow for example on proprietary Nvidia & X11 - for me it simply resizes properly and works.

Got it.

I've tested both games on openbox/x11 and there's really no problem with Alt + Tab (there's just one small problem with Splinter Cell 2: when you press Alt + Tab and return to the game, you can't move the character using the keyboard, but it's easily solved by clicking the mouse on the screen).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants