protonscr

GTAV: game freezes after keyboard input && low FPS

dxvkclosed
doitsujin/dxvk#776 · opened 2018-11-21 by JamesChenChina · updated 2019-01-19 · 18 comments · github
JJamesChenChina 2018-11-21 github

using Lutris to play GTAV.
FPS is only about 30.
Game freezes about 2 seconds after any keyboard input. And FPS down to nearly 0.
Searching for help and solution!
I tried wine3.19 and wine3.20. Both versions didn't help.
Thanks a lot!

Software information

GTAV

System information

  • GPU: NVIDIA Quadro M5000
  • Driver:396.54.0
  • Wine version: 3.19/3.20
  • DXVK version: 0.92
    -System: Ubuntu16.04

Log files

  • d3d11.log:
    info: D3D11CoreCreateDevice: Probing D3D_FEATURE_LEVEL_11_0
    info: D3D11CoreCreateDevice: Using feature level D3D_FEATURE_LEVEL_11_0
    info: D3D11CoreCreateDevice: Probing D3D_FEATURE_LEVEL_10_0
    info: D3D11CoreCreateDevice: Using feature level D3D_FEATURE_LEVEL_10_0
    info: D3D11CoreCreateDevice: Probing D3D_FEATURE_LEVEL_11_0
    info: D3D11CoreCreateDevice: Using feature level D3D_FEATURE_LEVEL_11_0
    info: D3D11CoreCreateDevice: Probing D3D_FEATURE_LEVEL_11_0
    info: D3D11CoreCreateDevice: Using feature level D3D_FEATURE_LEVEL_11_0
    info: D3D11CoreCreateDevice: Probing D3D_FEATURE_LEVEL_11_0
    info: D3D11CoreCreateDevice: Using feature level D3D_FEATURE_LEVEL_11_0
    info: D3D11CoreCreateDevice: Probing D3D_FEATURE_LEVEL_11_0
    info: D3D11CoreCreateDevice: Using feature level D3D_FEATURE_LEVEL_11_0
    info: D3D11CoreCreateDevice: Probing D3D_FEATURE_LEVEL_11_0
    info: D3D11CoreCreateDevice: Using feature level D3D_FEATURE_LEVEL_11_0
    info: D3D11CoreCreateDevice: Probing D3D_FEATURE_LEVEL_11_0
    info: D3D11CoreCreateDevice: Using feature level D3D_FEATURE_LEVEL_11_0
    info: D3D11CoreCreateDevice: Probing D3D_FEATURE_LEVEL_11_0
    info: D3D11CoreCreateDevice: Using feature level D3D_FEATURE_LEVEL_11_0
    info: D3D11CoreCreateDevice: Probing D3D_FEATURE_LEVEL_11_0
    info: D3D11CoreCreateDevice: Using feature level D3D_FEATURE_LEVEL_11_0
    info: D3D11CoreCreateDevice: Probing D3D_FEATURE_LEVEL_11_0
    info: D3D11CoreCreateDevice: Using feature level D3D_FEATURE_LEVEL_11_0

  • dxgi.log:
    info: Game: GTA5.exe
    info: DXVK: v0.92
    info: Found built-in config: GTA5.exe
    info: Effective configuration:
    info: dxgi.customVendorId = 1002
    info: dxgi.customDeviceId = e366
    warn: OpenVR: Failed to locate module
    info: Enabled instance extensions:
    info: VK_KHR_get_physical_device_properties2
    info: VK_KHR_surface
    info: VK_KHR_win32_surface
    info: Quadro M5000:
    info: Driver: 396.54.0
    info: Vulkan: 1.1.70
    info: Memory Heap[0]:
    info: Size: 8192 MiB
    info: Flags: 0x1
    info: Memory Type[7]: Property Flags = 0x1
    info: Memory Type[8]: Property Flags = 0x1
    info: Memory Heap[1]:
    info: Size: 48264 MiB
    info: Flags: 0x0
    info: Memory Type[0]: Property Flags = 0x0
    info: Memory Type[1]: Property Flags = 0x0
    info: Memory Type[2]: Property Flags = 0x0
    info: Memory Type[3]: Property Flags = 0x0
    info: Memory Type[4]: Property Flags = 0x0
    info: Memory Type[5]: Property Flags = 0x0
    info: Memory Type[6]: Property Flags = 0x0
    info: Memory Type[9]: Property Flags = 0x6
    info: Memory Type[10]: Property Flags = 0xe
    info: Game: GTA5.exe
    info: DXVK: v0.92
    info: Found built-in config: GTA5.exe
    info: Effective configuration:
    info: dxgi.customVendorId = 1002
    info: dxgi.customDeviceId = e366
    warn: OpenVR: Failed to locate module
    info: Enabled instance extensions:
    info: VK_KHR_get_physical_device_properties2
    info: VK_KHR_surface
    info: VK_KHR_win32_surface
    info: Quadro M5000:
    info: Driver: 396.54.0
    info: Vulkan: 1.1.70
    info: Memory Heap[0]:
    info: Size: 8192 MiB
    info: Flags: 0x1
    info: Memory Type[7]: Property Flags = 0x1
    info: Memory Type[8]: Property Flags = 0x1
    info: Memory Heap[1]:
    info: Size: 48264 MiB
    info: Flags: 0x0
    info: Memory Type[0]: Property Flags = 0x0
    info: Memory Type[1]: Property Flags = 0x0
    info: Memory Type[2]: Property Flags = 0x0
    info: Memory Type[3]: Property Flags = 0x0
    info: Memory Type[4]: Property Flags = 0x0
    info: Memory Type[5]: Property Flags = 0x0
    info: Memory Type[6]: Property Flags = 0x0
    info: Memory Type[9]: Property Flags = 0x6
    info: Memory Type[10]: Property Flags = 0xe
    info: Enabled device extensions:
    info: VK_EXT_shader_viewport_index_layer
    info: VK_EXT_vertex_attribute_divisor
    info: VK_KHR_dedicated_allocation
    info: VK_KHR_descriptor_update_template
    info: VK_KHR_get_memory_requirements2
    info: VK_KHR_image_format_list
    info: VK_KHR_maintenance1
    info: VK_KHR_maintenance2
    info: VK_KHR_sampler_mirror_clamp_to_edge
    info: VK_KHR_shader_draw_parameters
    info: VK_KHR_swapchain
    info: DXVK: Read 8 valid state cache entries
    info: DXVK: Using 12 compiler threads
    info: Enabled device extensions:
    info: VK_EXT_shader_viewport_index_layer
    info: VK_EXT_vertex_attribute_divisor
    info: VK_KHR_dedicated_allocation
    info: VK_KHR_descriptor_update_template
    info: VK_KHR_get_memory_requirements2
    info: VK_KHR_image_format_list
    info: VK_KHR_maintenance1
    info: VK_KHR_maintenance2
    info: VK_KHR_sampler_mirror_clamp_to_edge
    info: VK_KHR_shader_draw_parameters
    info: VK_KHR_swapchain
    info: DXVK: Read 8 valid state cache entries
    info: DXVK: Using 12 compiler threads
    info: DXGI: Setting display mode: 800x600@60
    warn: DXGI: MakeWindowAssociation: Ignoring flags
    info: Game: GTA5.exe
    info: DXVK: v0.92
    info: Found built-in config: GTA5.exe
    info: Effective configuration:
    info: dxgi.customVendorId = 1002
    info: dxgi.customDeviceId = e366
    warn: OpenVR: Failed to locate module
    info: Enabled instance extensions:
    info: VK_KHR_get_physical_device_properties2
    info: VK_KHR_surface
    info: VK_KHR_win32_surface
    info: Quadro M5000:
    info: Driver: 396.54.0
    info: Vulkan: 1.1.70
    info: Memory Heap[0]:
    info: Size: 8192 MiB
    info: Flags: 0x1
    info: Memory Type[7]: Property Flags = 0x1
    info: Memory Type[8]: Property Flags = 0x1
    info: Memory Heap[1]:
    info: Size: 48264 MiB
    info: Flags: 0x0
    info: Memory Type[0]: Property Flags = 0x0
    info: Memory Type[1]: Property Flags = 0x0
    info: Memory Type[2]: Property Flags = 0x0
    info: Memory Type[3]: Property Flags = 0x0
    info: Memory Type[4]: Property Flags = 0x0
    info: Memory Type[5]: Property Flags = 0x0
    info: Memory Type[6]: Property Flags = 0x0
    info: Memory Type[9]: Property Flags = 0x6
    info: Memory Type[10]: Property Flags = 0xe
    info: Enabled device extensions:
    info: VK_EXT_shader_viewport_index_layer
    info: VK_EXT_vertex_attribute_divisor
    info: VK_KHR_dedicated_allocation
    info: VK_KHR_descriptor_update_template
    info: VK_KHR_get_memory_requirements2
    info: VK_KHR_image_format_list
    info: VK_KHR_maintenance1
    info: VK_KHR_maintenance2
    info: VK_KHR_sampler_mirror_clamp_to_edge
    info: VK_KHR_shader_draw_parameters
    info: VK_KHR_swapchain
    info: DXVK: Read 205 valid state cache entries
    info: DXVK: Using 12 compiler threads
    info: Enabled device extensions:
    info: VK_EXT_shader_viewport_index_layer
    info: VK_EXT_vertex_attribute_divisor
    info: VK_KHR_dedicated_allocation
    info: VK_KHR_descriptor_update_template
    info: VK_KHR_get_memory_requirements2
    info: VK_KHR_image_format_list
    info: VK_KHR_maintenance1
    info: VK_KHR_maintenance2
    info: VK_KHR_sampler_mirror_clamp_to_edge
    info: VK_KHR_shader_draw_parameters
    info: VK_KHR_swapchain
    info: DXVK: Read 206 valid state cache entries
    info: DXVK: Using 12 compiler threads
    info: Enabled device extensions:
    info: VK_EXT_shader_viewport_index_layer
    info: VK_EXT_vertex_attribute_divisor
    info: VK_KHR_dedicated_allocation
    info: VK_KHR_descriptor_update_template
    info: VK_KHR_get_memory_requirements2
    info: VK_KHR_image_format_list
    info: VK_KHR_maintenance1
    info: VK_KHR_maintenance2
    info: VK_KHR_sampler_mirror_clamp_to_edge
    info: VK_KHR_shader_draw_parameters
    info: VK_KHR_swapchain
    info: DXVK: Read 206 valid state cache entries
    info: DXVK: Using 12 compiler threads
    info: Enabled device extensions:
    info: VK_EXT_shader_viewport_index_layer
    info: VK_EXT_vertex_attribute_divisor
    info: VK_KHR_dedicated_allocation
    info: VK_KHR_descriptor_update_template
    info: VK_KHR_get_memory_requirements2
    info: VK_KHR_image_format_list
    info: VK_KHR_maintenance1
    info: VK_KHR_maintenance2
    info: VK_KHR_sampler_mirror_clamp_to_edge
    info: VK_KHR_shader_draw_parameters
    info: VK_KHR_swapchain
    info: DXVK: Read 224 valid state cache entries
    info: DXVK: Using 12 compiler threads
    warn: DXGI: MakeWindowAssociation: Ignoring flags
    info: Enabled device extensions:
    info: VK_EXT_shader_viewport_index_layer
    info: VK_EXT_vertex_attribute_divisor
    info: VK_KHR_dedicated_allocation
    info: VK_KHR_descriptor_update_template
    info: VK_KHR_get_memory_requirements2
    info: VK_KHR_image_format_list
    info: VK_KHR_maintenance1
    info: VK_KHR_maintenance2
    info: VK_KHR_sampler_mirror_clamp_to_edge
    info: VK_KHR_shader_draw_parameters
    info: VK_KHR_swapchain
    info: DXVK: Read 224 valid state cache entries
    info: DXVK: Using 12 compiler threads
    info: DXGI: Setting display mode: 1024x768@60
    info: Enabled device extensions:
    info: VK_EXT_shader_viewport_index_layer
    info: VK_EXT_vertex_attribute_divisor
    info: VK_KHR_dedicated_allocation
    info: VK_KHR_descriptor_update_template
    info: VK_KHR_get_memory_requirements2
    info: VK_KHR_image_format_list
    info: VK_KHR_maintenance1
    info: VK_KHR_maintenance2
    info: VK_KHR_sampler_mirror_clamp_to_edge
    info: VK_KHR_shader_draw_parameters
    info: VK_KHR_swapchain
    info: DXVK: Read 224 valid state cache entries
    info: DXVK: Using 12 compiler threads
    info: Enabled device extensions:
    info: VK_EXT_shader_viewport_index_layer
    info: VK_EXT_vertex_attribute_divisor
    info: VK_KHR_dedicated_allocation
    info: VK_KHR_descriptor_update_template
    info: VK_KHR_get_memory_requirements2
    info: VK_KHR_image_format_list
    info: VK_KHR_maintenance1
    info: VK_KHR_maintenance2
    info: VK_KHR_sampler_mirror_clamp_to_edge
    info: VK_KHR_shader_draw_parameters
    info: VK_KHR_swapchain
    info: DXVK: Read 225 valid state cache entries
    info: DXVK: Using 12 compiler threads
    info: Enabled device extensions:
    info: VK_EXT_shader_viewport_index_layer
    info: VK_EXT_vertex_attribute_divisor
    info: VK_KHR_dedicated_allocation
    info: VK_KHR_descriptor_update_template
    info: VK_KHR_get_memory_requirements2
    info: VK_KHR_image_format_list
    info: VK_KHR_maintenance1
    info: VK_KHR_maintenance2
    info: VK_KHR_sampler_mirror_clamp_to_edge
    info: VK_KHR_shader_draw_parameters
    info: VK_KHR_swapchain
    info: DXVK: Read 225 valid state cache entries
    info: DXVK: Using 12 compiler threads
    info: DXGI: Setting display mode: 800x600@60
    info: Enabled device extensions:
    info: VK_EXT_shader_viewport_index_layer
    info: VK_EXT_vertex_attribute_divisor
    info: VK_KHR_dedicated_allocation
    info: VK_KHR_descriptor_update_template
    info: VK_KHR_get_memory_requirements2
    info: VK_KHR_image_format_list
    info: VK_KHR_maintenance1
    info: VK_KHR_maintenance2
    info: VK_KHR_sampler_mirror_clamp_to_edge
    info: VK_KHR_shader_draw_parameters
    info: VK_KHR_swapchain
    info: DXVK: Read 225 valid state cache entries
    info: DXVK: Using 12 compiler threads
    warn: DXGI: MakeWindowAssociation: Ignoring flags
    info: DXGI: Setting display mode: 1920x1080@60
    warn: DXGI: LeaveFullscreenMode: Failed to restore display mode

KKron4ek 2018-11-21 github

Do you use staging or vanilla Wine?

JJamesChenChina 2018-11-21 github

@Kron4ek
Thanks for your reply.
I got source code here https://github.com/wine-mirror/wine
master branch
Is that ok?

KKron4ek 2018-11-21 github

@JamesChenChina You are using vanilla Wine. It's ok, but not for GTAV. The last time i tried to play in GTAV with vanilla Wine (3.6) it freezed on keyboard input for a few seconds.

I'm sure the problem is in vanilla Wine, so use Wine-Staging (but don't use 3.20, because it has problems with keyboard input too).

JJamesChenChina 2018-11-21 github

@Kron4ek Thank you so much! Could you please show me a source code address of Wine Staging 3.19 that works well ? I will download and have a try.

KKron4ek 2018-11-21 github

@JamesChenChina Yes, i edited my comment, the link to sources is there. You have to apply Staging patches to Wine sources with patchinstall.sh script.

You can also use already compiled Wine builds if you want.

https://drive.google.com/drive/folders/1HkgqEEdAkCSYUCRFN64GGFTLF7H_Q5Xr

Dd4rkf4b 2018-11-21 github

Use Nvidia 396.54.09 (ppa graphics-drivers/dev)
Install wine staging with Lutris (manage runners)

And close this issue, this is not dxvk related

JJamesChenChina 2018-11-22 github

@Kron4ek Thanks. Problem has been solved with your complied wine3.19-staging!
By the way, could you tell me your GTAV FPS with wine3.19-staging? My FPS is about 31. I want to make it much higher.

KKron4ek 2018-11-22 github

@JamesChenChina i have just an integrated GPU, so my fps is lower than yours. What CPU do you have?

Dd4rkf4b 2018-11-22 github

With i7-4790k and GTX970, 60 FPS . Only MSAA is off.

JJamesChenChina 2018-11-22 github

@Kron4ek Intel(R) Xeon(R) CPU E5-2667 v4 @ 3.20GHz

JJamesChenChina 2018-11-22 github

@d4rkf4b That's great!
Do you make some configuration that can improve FPS with WINE or DXVK?

Dd4rkf4b 2018-11-22 github

@JamesChenChina
no more. Using wine-tkg-3.20 in Lutris with latest dxvk, that's all.

EDIT: Disable Vsync in game

JJamesChenChina 2018-11-28 github

@Kron4ek By the way, I got wine-staging3.19(amd64) from your link

in a new machine(Ubuntu16.04 64bit) just
sudo cp -r bin /usr/local/
sudo cp -r lib /usr/local/
sudo cp -r lib64 /usr/local/
sudo cp -r share /usr/local/

then
wine --version
ERROR: ld.so: object 'libachk.so' from /etc/ld.so.preload cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
wine-3.19 (Staging)

Do you know error reason?
Thanks a lot

KKron4ek 2018-11-28 github

@JamesChenChina Its better to use Wine from my link without copying it to /usr or /usr/local (maybe that is the cause of error), just unpack it into $HOME or /opt and use full path to wine binary to run applications.

Btw, do you have Wine from repositories installed? If not, you have to install it because of dependencies.

LLunaSquee 2018-12-02 github

I'm having the same issue over here. GTAV hangs for 5 seconds after any keyboard input.

Llibcg 2018-12-05 github

I believe this doesn't happen with older versions of DXVK. Will try to bisect tonight.

LLunaSquee 2018-12-05 github

I figured out the problem with the keyboard input freezing. It has to do
with a patch of dinput in wine-staging that was removed recently. I
reverted to wine-staging 3.18 and I no longer have this issue.

On Wed, 5 Dec 2018, 02:01 Clément Guérin <[email protected] wrote:

I believe this doesn't happen with older versions of DXVK. Will try to
bisect tonight.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/doitsujin/dxvk/issues/776#issuecomment-444306370, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AGEYKxkvnL_40Qz8bvmRCNOcmlZFD8bPks5u1wzygaJpZM4YsS5o
.

Kkleest 2019-01-19 github

For reference, that patch is 0001-server-Improve-handling-of-hooks-for-normal-non-inje.patch. Adjusting it to the current wine-staging (4.0rc5-1) version still fixes the freeze.

Upstream links