- optimus-manager(https://github.com/Askannz/optimus-manager) + wine + dxvk
- nvidia-prime(https://wiki.archlinux.org/index.php/PRIME) + wine + dxvk
Steps: a) Install "nvidia", "optimus-manager" and "dxvk-bin"(AUR) with
pacman -Syu --no-confirm optimus-manager nvidia
yay -Syyu dxvk-bin
b) Get optimus-manager to always run in "hybrid" mode it generally works well.
For Hydrid mode to work, Xorg should be aware of 'nvidia' driver before running optimus-manager --switch hybrid
. Also /etc/X11/xorg.conf.d should be empty.
c) dxvk-bin automatically should install the bare minimum vulkan library.
setup_dxvk.sh also ships with a copy of wine. Either use that one or use "wine-staging"
setup_dxvk installs d3d{9,10,11} libs in your wine configuration which is needed.
Power management on Hybrid mode looked good AFAICT. nvidia-smi kept reporting gpu being used by Xorg. More power management tips from optimus-manager project are at (https://github.com/Askannz/optimus-manager/wiki/Nvidia-GPU-offloading-for-%22hybrid%22-mode)
FIFA19 stutters a little bit probably due to "intel_pstate" or thermals on this machine (cpu getting throttled way too frequently). One thing worth trying (outside of dxvk tweaking) is disabling intel pstate with kernel parameters and using 'schedutil' cpu governor instead. "Performance" mode in pstate wasn't help much either. FIFA19 runs with :
__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME="nvidia" __VK_LAYER_NV_optimus="NVIDIA_only" __GL_SHOW_GRAPHICS_OSD=1 wine explorer /desktop=FIFA19,1920x1080 FIFA19.exe
Xorg.conf configured by optimus-manager when in hybrid mode : Use 'modesetting' and 'nvidia' drivers.
Section "ServerLayout"
Identifier "layout"
Screen 0 "intel"
Inactive "nvidia"
Option "AllowNVIDIAGPUScreens"
EndSection
Section "Device"
Identifier "intel"
Driver "modesetting"
BusID "PCI:0:2:0"
Option "DRI" "3"
EndSection
Section "Screen"
Identifier "intel"
Device "intel"
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:1:0:0"
Option "Coolbits" "28"
EndSection
Section "Screen"
Identifier "nvidia"
Device "nvidia"
EndSection
Nvidia Prime + wine + dxvk
Steps: Nvidia prime works just fine on this machine. Use Manjaro's _mhwd_11 to install video-hybrid-intel-nvidia-440xx-prime package Install dxvk same as in the above step. And simply run FIFA19 with
prime-run wine explorer /desktop=FIFA19,1920x1080 FIFA19.exe
The Xorg.conf (same thing as in Archlinux' PRIME wiki') Again uses 'modesetting' with 'nvidia'. 'intel' driver should work just as well per that Archlinux wiki.
Section "Device"
Identifier "iGPU"
Driver "modesetting"
EndSection
Section "Screen"
Identifier "iGPU"
Device "iGPU"
EndSection
Section "Device"
Identifier "dGPU"
Driver "nvidia"
EndSection
Additional Link: Lutris has a doc on tuning DXVK performance ! (https://github.com/lutris/lutris/wiki/Performance-Tweaks)