Optimise game launch with wine

Hello.
Just install Garuda on my new computer and I've got some question about opmisation with wine
My setup :

System:
  Kernel: 5.15.30-1-lts x86_64 bits: 64 compiler: gcc v: 11.2.0
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-lts
    root=UUID=ece8ff72-3221-4048-b7f2-fb09c55ff932 rw [email protected]
    quiet quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
    loglevel=3
  Desktop: Xfce 4.16.0 tk: Gtk 3.24.29 info: xfce4-panel, plank
    wm: xfwm 4.16.1 vt: 7 dm: LightDM 1.30.0 Distro: Garuda Linux
    base: Arch Linux
Machine:
  Type: Desktop System: ASUS product: N/A v: N/A serial: <superuser required>
  Mobo: ASUSTeK model: PRIME H510M-A v: Rev 1.xx
    serial: <superuser required> UEFI: American Megatrends v: 1017
    date: 07/12/2021
CPU:
  Info: model: Intel Core i5-10400F bits: 64 type: MT MCP arch: Comet Lake
    family: 6 model-id: 0xA5 (165) stepping: 3 microcode: 0xEC
  Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
    L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 1.5 MiB desc: 6x256 KiB
    L3: 12 MiB desc: 1x12 MiB
  Speed (MHz): avg: 1161 high: 3807 min/max: 800/4300 scaling:
    driver: intel_pstate governor: powersave cores: 1: 800 2: 800 3: 800 4: 800
    5: 3807 6: 1887 7: 1045 8: 800 9: 800 10: 800 11: 800 12: 800
    bogomips: 69597
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX unsupported
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: spec_store_bypass
    mitigation: Speculative Store Bypass disabled via prctl and seccomp
  Type: spectre_v1
    mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 status: Vulnerable: eIBRS with unprivileged eBPF
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: NVIDIA GA106 [Geforce RTX 3050] vendor: Gigabyte driver: nvidia
    v: 510.54 alternate: nouveau,nvidia_drm pcie: gen: 1 speed: 2.5 GT/s
    lanes: 8 link-max: gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 01:00.0
    chip-ID: 10de:2507 class-ID: 0300
  Display: x11 server: X.Org v: 1.21.1.3 compositor: xfwm v: 4.16.1 driver:
    X: loaded: nvidia unloaded: modesetting alternate: fbdev,nouveau,nv,vesa
    gpu: nvidia display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x286mm (20.0x11.3")
    s-diag: 583mm (23")
  Monitor-1: HDMI-1 res: 1920x1080 hz: 60 dpi: 94
    size: 521x293mm (20.5x11.5") diag: 598mm (23.5")
  OpenGL: renderer: NVIDIA GeForce RTX 3050/PCIe/SSE2
    v: 4.6.0 NVIDIA 510.54 direct render: Yes
Audio:
  Device-1: Intel vendor: ASUSTeK driver: snd_hda_intel v: kernel
    bus-ID: 00:1f.3 chip-ID: 8086:f0c8 class-ID: 0403
  Device-2: NVIDIA vendor: Gigabyte driver: snd_hda_intel v: kernel pcie:
    gen: 3 speed: 8 GT/s lanes: 8 link-max: gen: 4 speed: 16 GT/s lanes: 16
    bus-ID: 01:00.1 chip-ID: 10de:228e class-ID: 0403
  Sound Server-1: ALSA v: k5.15.30-1-lts running: yes
  Sound Server-2: PulseAudio v: 15.0 running: no
  Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
  Device-1: Intel Ethernet I219-V vendor: ASUSTeK driver: e1000e v: kernel
    port: N/A bus-ID: 00:1f.6 chip-ID: 8086:15fa class-ID: 0200
  IF: eno1 state: up speed: 1000 Mbps duplex: full mac: <filter>
  IF-ID-1: tun0 state: unknown speed: 10 Mbps duplex: full mac: N/A
Drives:
  Local Storage: total: 566.37 GiB used: 363.71 GiB (64.2%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: A-Data model: SX6000NP
    size: 119.24 GiB block-size: physical: 512 B logical: 512 B
    speed: 15.8 Gb/s lanes: 2 type: SSD serial: <filter> rev: V6005-af
    temp: 41.9 C scheme: GPT
  ID-2: /dev/sda maj-min: 8:0 vendor: Crucial model: CT480BX500SSD1
    size: 447.13 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    type: SSD serial: <filter> rev: 054 scheme: GPT
Partition:
  ID-1: / raw-size: 118.95 GiB size: 118.95 GiB (100.00%)
    used: 86.85 GiB (73.0%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 576 KiB (0.2%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
  ID-3: /home raw-size: 118.95 GiB size: 118.95 GiB (100.00%)
    used: 86.85 GiB (73.0%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-4: /var/log raw-size: 118.95 GiB size: 118.95 GiB (100.00%)
    used: 86.85 GiB (73.0%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-5: /var/tmp raw-size: 118.95 GiB size: 118.95 GiB (100.00%)
    used: 86.85 GiB (73.0%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: zram size: 15.48 GiB used: 1.49 GiB (9.6%)
    priority: 100 dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 27.8 C mobo: N/A gpu: nvidia temp: 45 C
  Fan Speeds (RPM): N/A gpu: nvidia fan: 0%
Info:
  Processes: 340 Uptime: 1d 19h 21m wakeups: 6 Memory: 15.48 GiB
  used: 2.86 GiB (18.5%) Init: systemd v: 250 tool: systemctl Compilers:
  gcc: 11.2.0 Packages: pacman: 1460 lib: 496 Shell: Zsh v: 5.8.1
  running-in: xfce4-terminal inxi: 3.3.13
Garuda (2.5.6-2):
  System install date:     2022-03-18
  Last full system update: 2022-03-22 ↻
  Is partially upgraded:   No
  Relevant software:       NetworkManager
  Windows dual boot:       No/Undetected
  Snapshots:               Snapper
  Failed units:            bluetooth-autoconnect.service 

Every game launched with steam work perfectly but when I try to lunch an exe with wine it's seems the quality is not fully here.
For example with Aliens Fireteam the shadow is not good trying to change some settings on my monitor/ in game but the graphics are not at as expected
(can't join picture because I'm new sorry)
On this video the quality is good (shadow / light) : Aliens Fireteam Elite - YouTube
if I check the requirement it's seems good Aliens: Fireteam System Requirements - Can I Run It? - PCGameBenchmark

Tryin other game with wine work great like MIdnight club 2 or Guild War 2 (not very hungry game)

I will buy it on steam but If it's runs poorly like It running now with exe i'll lose my money for nothing
So if you have tips or recommendation I'll appreciate

Are you using DXVK? If you aren't, consider installing it with WINEPREFIX=/path/to/wineprefix winetricks dxvk.

Thanks you for you reply
I installed it yesterday (Installation through Garuda Gamer) and when I launch the game it crash before main menu
Reed some doc on winehq and I just rename my .wine to .wine.old releaunch the game and it was ok
I test it your solution @mrvictory

WINEPREFIX=/home/user/.wine winetricks dxvk
SSL_INIT
Executing mkdir -p /home/user
------------------------------------------------------
warning: You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
Using winetricks 20210206-next - sha256sum: 0769bbcdbd92c407f4eacaa85acc1339f607dbeafe2febd1be0912034c7af3a1 with wine-7.4 and WINEARCH=win64
Executing w_do_call dxvk
Executing mkdir -p /home/user
------------------------------------------------------
warning: You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
Executing load_dxvk 
Executing mkdir -p /home/user/.cache/winetricks/dxvk

but I've got same error when I try to add the game to steam librairy and lunch with proton (any version)

DX11 feature level 10.0 is requiered to run the engine

On the log I've got this

info:  Game: Endeavor-Win64-Shipping.exe
info:  DXVK: v1.10
info:  Built-in extension providers:
info:    Win32 WSI
info:    OpenVR
info:    OpenXR
info:  OpenVR: could not open registry key, status 2
info:  OpenVR: Failed to locate module
info:  Enabled instance extensions:
info:    VK_KHR_get_surface_capabilities2
info:    VK_KHR_surface
info:    VK_KHR_win32_surface
err:   DxvkInstance::createInstance: Failed to create Vulkan 1.1 instance

If I try to get vulkaninfo got some error

vulkaninfo 
WARNING: [Loader Message] Code 0 : loader_scanned_icd_add: Driver /usr/lib/amdvlk64.so says it supports interface version 6 but still exports core entrypoints (Policy #LDP_DRIVER_6)
ERROR at /build/vulkan-tools/src/Vulkan-Tools-1.3.207/vulkaninfo/vulkaninfo.h:651:vkCreateInstance failed with ERROR_OUT_OF_HOST_MEMORY

After some search here I got !

sudo pacman -Sy vulkan-intel 
sudo pacman -R amdvlk

Lunch the game and voila shadow and light is perfect !

3 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.