https://bugs.winehq.org/show_bug.cgi?id=42664
Marcin Zajaczkowski mszpak@wp.pl changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mszpak@wp.pl
--- Comment #10 from Marcin Zajaczkowski mszpak@wp.pl --- Created attachment 66864 --> https://bugs.winehq.org/attachment.cgi?id=66864 Broken rendering with Wine 5.5 and XCOM 2 from GOG
The issue seems to still occur in Wine 5.5 and the XCOM 2 version released on GOG.
Looking at the initial screenshots from 2017 with Wine 5.5 in 2020 it looks better, but still some textures are weirdly displayed (attached).
In logs there is 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.
I don't know if it is related to the textures problem. The game runs very slow.
NVidia GeForce GTX 1660 Ti with 440.64. Some other games (including XCOM 1) works on this machine flawlessly with 1080p and maximum details.
I might attach full logs in required.
Btw, I gave dxvk a try and it looks ok with it and Wine 5.5.