Issue with eGPU performance (Gaming) on KDE

Yes, coincidentally both my Laptop and my eGPU are Gigabyte. Laptop is Gigabyte Aorus 17G XD and eGPU is Gigabyte RTX 3080 Eagle in Razer Core X Chrome via Thunderbolt 4.

I followed this tutorial: [root tip] [How To] Dual boot Manjaro and Windows
to set up Manjaro to dual boot with Windows 10, in there it was suggested to add new EFI boot partition, nothing about deleting the Windows one (I guess that’s so that windows won’t overwrite GRUB).

So far nothing regarding UEFI is yelling at me (this computer doesn’t even support legacy boot from what I see in BIOS)

Opened the manjaro Hardware configuration and clicked Auto Install Proprietary Driver.

Output of mhwd:

mhwd --listinstalled                                                                           ✔ 
> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
           video-linux            2018.05.04                true            PCI
     video-modesetting            2020.01.13                true            PCI
video-hybrid-intel-nvidia-prime            2021.07.28               false            PCI


Warning: No installed USB configs!

Just for the heck of it I went and attempted to to use Wayland. Even though I couldn’t get my eGPU and external displays to work with I did notice a huge improvement on my dedicated RTX 3070. Could this indicate issue with Xorg?

I’ve configured my xorg like so: https://joplin.sepaurg.eu/shares/7N1MyveO7P2F0bPDcJQQ3mRcPMSVNB19

Optimus Manager generated xorg conf
Section "Files"
        ModulePath "/usr/lib/nvidia"
        ModulePath "/usr/lib32/nvidia"
        ModulePath "/usr/lib32/nvidia/xorg/modules"
        ModulePath "/usr/lib32/xorg/modules"
        ModulePath "/usr/lib64/nvidia/xorg/modules"
        ModulePath "/usr/lib64/nvidia/xorg"
        ModulePath "/usr/lib64/xorg/modules"
EndSection

Section "ServerLayout"
        Identifier "layout"
        Screen 0 "integrated"
        Inactive "nvidia"
        Option "AllowNVIDIAGPUScreens"
EndSection

Section "Device"
        Identifier "integrated"
        Driver "modesetting"
        BusID "PCI:0:2:0"
        Option "DRI" "3"
EndSection

Section "Screen"
        Identifier "integrated"
        Device "integrated"
        Option "AllowExternalGpus"
EndSection

Section "Device"
        Identifier "nvidia"
        Driver "nvidia"
        BusID "PCI:1:0:0"
        Option "Coolbits" "28"
EndSection

Section "Screen"
        Identifier "nvidia"
        Device "nvidia"
EndSection

Here’s a table of framerate comparions from my evening testing with Snowrunner (seems to have the biggest hit)

Framerate Comparisons
OS Setting Resolution Framerate
Windows eGPU 3440x1440 ~80 FPS
Manjaro Xorg - eGPU 3440x1440 ~30 FPS
Manjaro Xorg - eGPU Multiple resolutions in windowed mode down to 1080p ~30 FPS
Manjaro Xorg - dGPU Optimus Manager set to NVIDIA 3440 x 1440 ~20 FPS
Manjaro Xorg - dGPU Optimus Manager set to Hybrid 3440 x 1440 ~30 FPS
Manjaro Xorg - dGPU Optimus Manager set to NVIDIA Laptop’s 1920 x 1080 ~30 FPS
Manjaro Xorg - dGPU Optimus Manager set to Hybrid Laptop’s 1920 x 1080 ~60 FPS
Manjaro Wayland Laptop’s 1920 x 1080 ~80 FPS