doitsujin / dxvk

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

[d3d9] Worms Armageddon: main menu keeps shaking if window mode is disabled #4104

Open ranplayer opened 1 month ago

ranplayer commented 1 month ago

It seems the developers of Worms Armageddon implemented a minor workaround to boot the game in a small window mode when running it through Wine to prevent the issue described on the title.

wa_boot_popup

If you select "No" or changed it later via the Graphics settings, then the main menu keeps shaking and you can't interact with it. The game's default renderer is D3D9. If you use Wine3D3 (PROTON_USE_WINED3D=1 %command%) the problem doesn't happen (or if you change the API to OpenGL (shader) via the Graphics settings)

Software information

Game: Worms Armageddon SteamId: 217200 Settings: default

System information

Apitrace file(s)

Log files

K0bin commented 1 month ago

There's nothing shaking when replaying the apitrace. Did you encounter the issue when you made the apitrace?

ranplayer commented 1 month ago

yes... I've retested here and found out the "shaking" just happens on Wayland (xwayland 23.2.6). I've just noticed two issues for D3D9 renderer on X11:

1) the main menu is misaligned (check pictures below)

DXVK : wa_x11

WineD3D: wa_wd3d

2) If you alt+tab and focus the window later it turns completely black (attaching a trace: https://mega.nz/file/AotDTZLL#aIW3aY0TslXvL9rNW4egTDDs0DbvnsesW80p0zee5Ck).

(I'll just stop using Wayland for testing games and wait for the proper Wine support. Sorry...)

Blisto91 commented 1 month ago

Does launching with DXVK_CONFIG="d3d9.deviceLossOnFocusLoss = True" help with the alt-tab black screen

ranplayer commented 1 month ago

@Blisto91 it doesn't. For WineD3D it just crashes instead of displaying the black screen

ranplayer commented 1 month ago

I'm reattaching the logs for the black screen on X11: steam-217200-x11.tar.gz

It has several repeated logs of:

info:  Presenter: Actual swap chain properties:
info:    Format:       VK_FORMAT_B8G8R8A8_UNORM
info:    Color space:  VK_COLOR_SPACE_SRGB_NONLINEAR_KHR
info:    Present mode: VK_PRESENT_MODE_FIFO_KHR (dynamic: yes)
info:    Buffer size:  160x31
info:    Image count:  4
info:    Exclusive FS: 0
K0bin commented 1 month ago

This really sounds like either a compositor bug or an XWayland bug. Which compositor/desktop environment are you using?

ranplayer commented 1 month ago

Kwin (Plasma 6.1)

AlexFolland commented 1 month ago

Can you please attach a video of this happening? It would be good to see the exact behavior visually to understand it more clearly.

ranplayer commented 1 month ago

@AlexFolland sure... this is a video from the wayland session: worms_armageedon_wayland.tar.gz

ranplayer commented 1 month ago

folks, the "shaking issue" on wayland has been solved with the recent xwayland update (24.1.1). Also the alignment.