XCOM 2 - visual glitches, unable to play

Questions about Wine on Linux
Locked
szpak
Level 1
Level 1
Posts: 5
Joined: Fri Nov 17, 2017 4:57 pm

XCOM 2 - visual glitches, unable to play

Post by szpak »

Hi. I've tried to run XCOM 2 from GOG (only Windows version available) with Wine on Fedora, but without success.

I have GeForce GeForce GTX 1660 Ti Mobile and proprietary NVIDIA 440.64 drivers (also 16 GB of RAM and i7 CPU), so I suspected it should be enough. The game starts, but even the background elements in the initial screen with a soldier behind the corner draw with visible delay. On the tutorial mission there is a problem with the ground textures (see screenshot) and I'm unable to move soldier to the designated point. I suspect, my cursor points some other place. Using the console and ttc (teleport to cursor") moves the solder to some sublevel (below the ground).

I the wine logs I have a lot of:
> 005f:fixme:d3d_shader:print_glsl_info_log 0(23) : warning C7050: "vs_out[30]" might be used before being initialized
> 005f:fixme:d3d_shader:print_glsl_info_log 0(23) : warning C7050: "vs_out[31]" might be used before being initialized

Once disabled (WINEDEBUG=fixme-d3d_shader) I see among others:

> 0009:fixme:d3d11:d3d11_device_CheckFormatSupport iface 000000001B1D7E20, format 61, format_support 00000000005FCD08 partial-stub!
> Detected 1 Nvidia GPU for rendering
> 0009:fixme:d3d:wined3d_swapchain_init The application requested more than one back buffer, this is not properly supported.
> Please configure the application to use double buffering (1 back buffer) if possible.
> 0009:fixme:dxgi:d3d11_swapchain_GetDesc Ignoring ScanlineOrdering and Scaling.
> 0009:fixme:imm:ImmReleaseContext (000000000006004A, 000000002A05EC90): stub

I've read that tripple buffering was added in some update for XCOM 2. I tried to disable it in Xorg settings:
> Option "TripleBuffer" "off"

in the OutputClass or Screen section, but it seems ignored (I don't see anything in Xorg logs and Wine also reports the same problem). I haven't found how to disable it in the application/engine. The graphic details are set to minimum.

I was suspecting that game is running using the Intel graphic card (Optimus), but I use "Option "PrimaryGPU" "yes"" and also Wine in debug mode confirms it is NVidia:

> 0009:trace:wgl:X11DRV_WineGL_InitOpenglInfo GL version : 4.6.0 NVIDIA 440.64.
> 0009:trace:wgl:X11DRV_WineGL_InitOpenglInfo GL renderer : GeForce GTX 1660 Ti/PCIe/SSE2.
> 0009:trace:wgl:X11DRV_WineGL_InitOpenglInfo GLX version : 1.4.
> 0009:trace:wgl:X11DRV_WineGL_InitOpenglInfo Server GLX version : 1.4.
> 0009:trace:wgl:X11DRV_WineGL_InitOpenglInfo Server GLX vendor: : NVIDIA Corporation.
> 0009:trace:wgl:X11DRV_WineGL_InitOpenglInfo Client GLX version : 1.4.
> 0009:trace:wgl:X11DRV_WineGL_InitOpenglInfo Client GLX vendor: : NVIDIA Corporation.
> 0009:trace:wgl:X11DRV_WineGL_InitOpenglInfo Direct rendering enabled: True

I have tried some other 3D games on that system and they worked without any glitches (including XCOM 1 running smoothly with maximum details in 1920x1200). Fresh Fedora 32 Beta installation with Wine 5.5 (initially 5.4).

Do you have any idea how to make XCOM 2 playable?

Marcin
Attachments
xcom2-strange-rendering.jpg
szpak
Level 1
Level 1
Posts: 5
Joined: Fri Nov 17, 2017 4:57 pm

Re: XCOM 2 - visual glitches, unable to play

Post by szpak »

After the installation of dxvk (1.6) game started to run smoothly with proper rendering. The problem with moving the solders remained, however it seems to be a generic problem with XCOM 2 under Wine - https://www.gog.com/forum/xcom_2/unable ... ives/page1
szpak
Level 1
Level 1
Posts: 5
Joined: Fri Nov 17, 2017 4:57 pm

Re: XCOM 2 - visual glitches, unable to play

Post by szpak »

Just for a reference. I've found a related issues in Bugzilla: https://bugs.winehq.org/show_bug.cgi?id=42664
Locked