You are not logged in.

#1 2022-07-18 19:30:24

lewisgill
Member
Registered: 2022-07-18
Posts: 9

Games Extremely Slow with Proprietary Nvidia Drivers

Hi, I'm having issues with the nvidia package with light games (that natively support Linux) running extremely slowly (sub 20 FPS), some games being very blurry and some crashing. I previously installed the Nvidia drivers manually through Nvidia's .run file and had none of these issues (apart from some blurriness which only occured in tf2 for some reason) however as advised in the install guide I switched over to the nvidia package and have had these issues ever since. Any help would be greatly appreciated smile

--System Specs---
AMD Ryzen 9 5900X
NVIDIA GeForce GTX 1060 3GB
32GB RAM
Kernel: 5.18.12-arch1-1

Offline

#2 2022-07-18 19:36:50

JaydenDev
Member
Registered: 2022-07-11
Posts: 172

Re: Games Extremely Slow with Proprietary Nvidia Drivers

tf2! Straight to the answer, is it mostly source games? I also have a decently close graphics card, so this might just be your issue. So, your going to want to edit '/etc/mkinitcpio.conf. Add the following to the MODULES=() line (within the parenthesis).

nvidia nvidia-drm nvidia-modeset

then run

sudo mkinitcpio -P

then reboot


System Specs:
Intel Core i5-2400 Nvidia GTX 1050ti Logitech G402 Hyperion Fury (Mouse) BestBuy Essentials USB Keyboard
Software Specifications:
Desktop Environment: KDE Plasma Window Manager: KWin Operating System: Arch Linux (btw)

Offline

#3 2022-07-18 21:07:49

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,514

Re: Games Extremely Slow with Proprietary Nvidia Drivers

If that doesn't help, post the outputs of

glxinfo -B
glxinfo32 -B

Online

#4 2022-07-19 10:45:21

lewisgill
Member
Registered: 2022-07-18
Posts: 9

Re: Games Extremely Slow with Proprietary Nvidia Drivers

JaydenDev wrote:

tf2! Straight to the answer, is it mostly source games? I also have a decently close graphics card, so this might just be your issue. So, you're going to want to edit '/etc/mkinitcpio.conf. Add the following to the MODULES=() line (within the parenthesis).

nvidia nvidia-drm nvidia-modeset

then run

sudo mkinitcpio -P

then reboot

Thank for the response! I already had the following layout in mkinitcpio.conf "MODULES=(nvidia nvidia_modeset nvidia_uvm nvidia_drm)" so I replaced it with what you suggested in the exact order specified, ran mkinitcpio and I think I've found the source of the problem:
==> ERROR: module not found: `nvidia'
==> ERROR: module not found: `nvidia_drm'
==> ERROR: module not found: `nvidia_modeset'

As you can see it is unable to find the nvidia modules however if I run "pacman -Q nvidia" it successfully returns "nvidia 515.57-6".

P.S. it does seem to affect source games the worst however the issues are also present in Sims 4, Hearts of Iron 4 and Cities Skylines.

Last edited by lewisgill (2022-07-19 10:46:41)

Offline

#5 2022-07-19 10:56:36

lewisgill
Member
Registered: 2022-07-18
Posts: 9

Re: Games Extremely Slow with Proprietary Nvidia Drivers

seth wrote:

If that doesn't help, post the outputs of

glxinfo -B
glxinfo32 -B

Thanks for the reply! I didn't have lib32-mesa-utils installed previous to your reply, not sure if that might have affected something.

----glxinfo -B--

name of display: :0
display: :0  screen: 0
direct rendering: Yes
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 3072 MB
    Total available memory: 3072 MB
    Currently available dedicated video memory: 2587 MB
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: NVIDIA GeForce GTX 1060 3GB/PCIe/SSE2
OpenGL core profile version string: 4.6.0 NVIDIA 515.57
OpenGL core profile shading language version string: 4.60 NVIDIA
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6.0 NVIDIA 515.57
OpenGL shading language version string: 4.60 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)

OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 515.57
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

---glxinfo32 -B---

name of display: :0
display: :0  screen: 0
direct rendering: Yes
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 3072 MB
    Total available memory: 3072 MB
    Currently available dedicated video memory: 2593 MB
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: NVIDIA GeForce GTX 1060 3GB/PCIe/SSE2
OpenGL core profile version string: 4.6.0 NVIDIA 515.57
OpenGL core profile shading language version string: 4.60 NVIDIA
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6.0 NVIDIA 515.57
OpenGL shading language version string: 4.60 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)

OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 515.57
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3. 

Last edited by lewisgill (2022-07-19 12:14:02)

Offline

#6 2022-07-19 11:26:30

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,514

Re: Games Extremely Slow with Proprietary Nvidia Drivers

As you can see it is unable to find the nvidia modules however if I run "pacman -Q nvidia" it successfully returns "nvidia 515.57-6".

uname -a
pacman -Qs 'nvidia|linux

(Please use code tags for the output, https://bbs.archlinux.org/help.php#bbcode )

I didn't have lib32-mesa-utils installed previous to your reply, not sure if that might have affected something.

Did you try running a slow game afterwards?

Online

#7 2022-07-19 12:13:26

lewisgill
Member
Registered: 2022-07-18
Posts: 9

Re: Games Extremely Slow with Proprietary Nvidia Drivers

seth wrote:

As you can see it is unable to find the nvidia modules however if I run "pacman -Q nvidia" it successfully returns "nvidia 515.57-6".

uname -a
pacman -Qs 'nvidia|linux

(Please use code tags for the output, https://bbs.archlinux.org/help.php#bbcode )

Linux lewis-desktop 5.18.12-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 15 Jul 2022 15:33:02 +0000 x86_64 GNU/Linux
local/alsa-lib 1.2.7.2-1
    An alternative implementation of Linux sound support
local/alsa-utils 1.2.7-1
    Advanced Linux Sound Architecture - Utilities
local/archlinux-keyring 20220713-1
    Arch Linux PGP keyring
local/avahi 0.8+22+gfd482a7-3
    Service Discovery for Linux using mDNS/DNS-SD -- compatible with Bonjour
local/base 2-2
    Minimal package set to define a basic Arch Linux installation
local/bridge-utils 1.7.1-1
    Utilities for configuring the Linux ethernet bridge
local/egl-wayland 2:1.1.10-1
    EGLStream-based Wayland external platform
local/exfatprogs 1.1.3-1
    exFAT filesystem userspace utilities for the Linux Kernel exfat driver
local/filesystem 2021.12.07-1
    Base Arch Linux files
local/flatpak 1:1.12.7-1
    Linux application sandboxing and distribution framework (formerly xdg-app)
local/iptables 1:1.8.8-1
    Linux kernel packet control tool (using legacy interface)
local/keyutils 1.6.3-1
    Linux Key Management Utilities
local/kmod 30-1
    Linux kernel module management tools and library
local/lib32-keyutils 1.6.3-1
    Linux Key Management Utilities (32-bit)
local/lib32-libxshmfence 1.3-2
    a library that exposes a event API on top of Linux futexes (32-bit)
local/lib32-nvidia-utils 515.57-1
    NVIDIA drivers utilities (32-bit)
local/lib32-util-linux 2.38-1
    Miscellaneous system utilities for Linux (32-bit)
local/libaio 0.3.113-1
    The Linux-native asynchronous I/O facility (aio) library
local/libcap-ng 0.8.3-1
    A library for Linux that makes using posix capabilities easy
local/libiec61883 1.2.0-6
    A higher level API for streaming DV, MPEG-2 and audio over Linux IEEE 1394
local/libimobiledevice 1.3.0-5
    Library that talks the protocols to support iPhone and iPod Touch devices on Linux
local/libraw1394 2.1.2-3
    Provides an API to the Linux IEEE1394 (FireWire) driver
local/liburing 2.2-1
    Linux-native io_uring I/O access library
local/libva 2.15.0-1
    Video Acceleration (VA) API for Linux
local/libvdpau 1.5-1
    Nvidia VDPAU library
local/libxnvctrl 515.57-1
    NVIDIA NV-CONTROL X extension
local/libxshmfence 1.3-3
    a library that exposes a event API on top of Linux futexes
local/linux 5.18.12.arch1-1
    The Linux kernel and modules
local/linux-api-headers 5.17.5-2
    Kernel headers sanitized for use in userspace
local/linux-firmware 20220708.be7798e-1
    Firmware files for Linux
local/linux-firmware-whence 20220708.be7798e-1
    Firmware files for Linux - contains the WHENCE license file which documents the vendor license details
local/linux-headers 5.18.12.arch1-1
    Headers and scripts for building modules for the Linux kernel
local/linux-lts 5.15.55-1
    The LTS Linux kernel and modules
local/mdadm 4.2-2
    A tool for managing/monitoring Linux md device arrays, also known as Software RAID
local/multipath-tools 0.9.0-1
    Multipath tools for Linux (including kpartx)
local/ndctl 73-1
    Utility library for managing the libnvdimm (non-volatile memory device) sub-system in the Linux kernel
local/nvidia 515.57-6
    NVIDIA drivers for linux
local/nvidia-settings 515.57-1
    Tool for configuring the NVIDIA graphics driver
local/nvidia-utils 515.57-1
    NVIDIA drivers utilities
local/nvtop 2.0.1-1
    An htop like monitoring tool for NVIDIA GPUs
local/opencl-nvidia 515.57-1
    OpenCL implemention for NVIDIA
local/pacman-mirrorlist 20220605-1
    Arch Linux mirror list for use by pacman
local/python-distro 1.7.0-1
    Linux OS platform information API
local/python-evdev 1.5.0-1
    Python bindings for the Linux input subsystem
local/squashfs-tools 4.5.1-1
    Tools for squashfs, a highly compressed read-only filesystem for Linux
local/syslinux 6.04.pre2.r11.gbf6db5b4-3
    Collection of boot loaders that boot from FAT, ext2/3/4 and btrfs filesystems, from CDs and via PXE
local/torbrowser-launcher 0.3.5-4
    Securely and easily download, verify, install, and launch Tor Browser in Linux
local/util-linux 2.38-1
    Miscellaneous system utilities for Linux
local/util-linux-libs 2.38-1
    util-linux runtime libraries
local/v4l-utils 1.22.1-1
    Userspace tools and conversion library for Video 4 Linux
local/virt-install 4.0.0-1
    Command line tool for creating new KVM , Xen, or Linux container guests using the libvirt hypervisor
local/xf86-video-nouveau 1.0.17-2 (xorg-drivers)
    Open Source 3D acceleration driver for nVidia cards

I didn't have lib32-mesa-utils installed previous to your reply, not sure if that might have affected something.

Did you try running a slow game afterwards?

Tried running Cities Skylines and the issue persists, unfortunately.

Offline

#8 2022-07-19 14:01:28

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,514

Re: Games Extremely Slow with Proprietary Nvidia Drivers

The errors from #4 are most likely because you don't have nvidia-lts installed (but the LTS kernel)
You're running on the main kernel, though and according to #5 also on the nvidia drivers.

Please try eg. https://archlinux.org/packages/community/x86_64/warsow/ and post the steam output.

Online

#9 2022-07-19 17:48:03

lewisgill
Member
Registered: 2022-07-18
Posts: 9

Re: Games Extremely Slow with Proprietary Nvidia Drivers

seth wrote:

The errors from #4 are most likely because you don't have nvidia-lts installed (but the LTS kernel)
You're running on the main kernel, though and according to #5 also on the nvidia drivers.

Please try eg. https://archlinux.org/packages/community/x86_64/warsow/ and post the steam output.

/usr/bin/warsow: line 7:  7302 Segmentation fault      (core dumped) ${basepath}/warsow +set fs_basepath ${basepath} +set fs_usehomedir 1 "${@}"

The game ran very smoothly which makes me think this might be an issue with Steam (btw I just launched from console not sure if that's what you meant by steam output)

Offline

#10 2022-07-19 18:12:57

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,514

Re: Games Extremely Slow with Proprietary Nvidia Drivers

I rather meant to post the console output of steam - warsow seems to have crashed? (Though might have been a crash on exit)

Online

#11 2022-07-20 15:09:25

lewisgill
Member
Registered: 2022-07-18
Posts: 9

Re: Games Extremely Slow with Proprietary Nvidia Drivers

seth wrote:

I rather meant to post the console output of steam - warsow seems to have crashed? (Though might have been a crash on exit)

I can't seem to launch it through that command for some reason

Offline

#12 2022-07-20 18:40:42

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,514

Re: Games Extremely Slow with Proprietary Nvidia Drivers

You can't seem to launch *what* through *what* command for *what* reason?
https://bbs.archlinux.org/viewtopic.php?id=57855

Online

#13 2022-07-20 20:17:45

lewisgill
Member
Registered: 2022-07-18
Posts: 9

Re: Games Extremely Slow with Proprietary Nvidia Drivers

seth wrote:

You can't seem to launch *what* through *what* command for *what* reason?
https://bbs.archlinux.org/viewtopic.php?id=57855

I can't launch the command you asked me to "steam - warsow"

Offline

#14 2022-07-20 20:25:13

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,514

Re: Games Extremely Slow with Proprietary Nvidia Drivers

D'ohhh

I rather meant to post the console output of steam https://en.wikipedia.org/wiki/Dash#Em_dash warsow seems to have crashed?

The command you're supposed to run from the shell is just "steam"

Online

#15 2022-07-20 22:13:46

lewisgill
Member
Registered: 2022-07-18
Posts: 9

Re: Games Extremely Slow with Proprietary Nvidia Drivers

seth wrote:

D'ohhh

I rather meant to post the console output of steam https://en.wikipedia.org/wiki/Dash#Em_dash warsow seems to have crashed?

The command you're supposed to run from the shell is just "steam"

steam.sh[19753]: Running Steam on arch rolling 64-bit
steam.sh[19753]: STEAM_RUNTIME is enabled automatically
setup.sh[19828]: Steam runtime environment up-to-date!
steam.sh[19753]: Steam client's requirements are satisfied
WARNING: setlocale('en_US.UTF-8') failed, using locale: 'C'. International characters may not work.
[2022-07-20 23:12:14] Startup - updater built Jun  7 2022 03:18:19
Installing breakpad exception handler for appid(steam)/version(1654574690)
[2022-07-20 23:12:14] Loading cached metrics from disk (/home/lewis/.local/share/Steam/package/steam_client_metrics.bin)
[2022-07-20 23:12:14] Using the following download hosts for Public, Realm steamglobal
[2022-07-20 23:12:14] 1. https://cdn.cloudflare.steamstatic.com, /client/, Realm 'steamglobal', weight was 100, source = 'update_hosts_cached.vdf'
[2022-07-20 23:12:14] 2. https://cdn.akamai.steamstatic.com, /client/, Realm 'steamglobal', weight was 100, source = 'update_hosts_cached.vdf'
[2022-07-20 23:12:14] 3. http://media.steampowered.com, /client/, Realm 'steamglobal', weight was 1, source = 'baked in'
Installing breakpad exception handler for appid(steam)/version(1654574690)
[2022-07-20 23:12:14] Verifying installation...
[2022-07-20 23:12:14] Verification complete
Loaded SDL version 2.0.22-7215337
ComputeStartupMode: found registry default startup mode: 0Installing breakpad exception handler for appid(steam)/version(1654574690)
steamwebhelper.sh[19893]: Runtime for steamwebhelper: defaulting to /home/lewis/.local/share/Steam/ubuntu12_64/steam-runtime-heavy
steamwebhelper.sh[19893]: glibc >= 2.34, partially disabling sandbox until CEF supports clone3()
Installing breakpad exception handler for appid(steam)/version(1654574690)
Installing breakpad exception handler for appid(steam)/version(1654574690)
Installing breakpad exception handler for appid(steam)/version(1654574690)
Installing breakpad exception handler for appid(steam)/version(1654574690)
Installing breakpad exception handler for appid(steam)/version(1654574690)
Installing breakpad exception handler for appid(steam)/version(1654574690)
Installing breakpad exception handler for appid(steam)/version(1654574690)
Installing breakpad exception handler for appid(steam)/version(1654574690)
Installing breakpad exception handler for appid(steam)/version(1654574690)
Installing breakpad exception handler for appid(steam)/version(1654574690)
Installing breakpad exception handler for appid(steam)/version(1654574690)
Installing breakpad exception handler for appid(steam)/version(1654574690)
Installing breakpad exception handler for appid(steam)/version(1654574690)
Installing breakpad exception handler for appid(steam)/version(1654574690)
Installing breakpad exception handler for appid(steam)/version(1654574690)
Installing breakpad exception handler for appid(steam)/version(1654574690)
CAppInfoCacheReadFromDiskThread took 73 milliseconds to initialize
Installing breakpad exception handler for appid(steam)/version(1654574690)
local (potentially out of sync) copy of roaming config loaded - 237 bytes.

(steam:19888): Gtk-WARNING **: 23:12:15.766: gtk_disable_setlocale() must be called before gtk_init()
Installing breakpad exception handler for appid(steam)/version(1654574690)
Installing breakpad exception handler for appid(steam)/version(1654574690)
Installing breakpad exception handler for appid(steam)/version(1654574690)
roaming config store loaded successfully - 237 bytes.
migrating temporary roaming config store
BRefreshApplicationsInLibrary 1: 7ms
Installing breakpad exception handler for appid(steam)/version(1654574690)
Installing breakpad exception handler for appid(steam)/version(1654574690)
Installing breakpad exception handler for appid(steam)/version(1654574690)
Installing breakpad exception handler for appid(steam)/version(1654574690)
Failed to init SteamVR because it isn't installed
Installing breakpad exception handler for appid(steam)/version(1654574690)
Installing breakpad exception handler for appid(steam)/version(1654574690)
Installing breakpad exception handler for appid(steam)/version(1654574690)
ExecCommandLine: "'/home/lewis/.local/share/Steam/ubuntu12_32/steam'"
Installing breakpad exception handler for appid(steam)/version(1654574690)
System startup time: 3.30 seconds
Installing breakpad exception handler for appid(steam)/version(1654574690)
Installing breakpad exception handler for appid(steam)/version(1654574690)
Installing breakpad exception handler for appid(steam)/version(1654574690)
BuildCompleteAppOverviewChange: 411
RegisterForAppOverview 1: 13ms
RegisterForAppOverview 2: 14ms

Ah my bad here's the output

Offline

#16 2022-07-21 06:20:50

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,514

Re: Games Extremely Slow with Proprietary Nvidia Drivers

Did you also start an extremelyslow™ game for that output?
There're no errors, nothing suspicious - maybe you could create the missing en_US.UTF-8 locale but I don't see how this would cause games to be "just" slow.

Online

#17 2022-07-29 18:37:06

lewisgill
Member
Registered: 2022-07-18
Posts: 9

Re: Games Extremely Slow with Proprietary Nvidia Drivers

seth wrote:

Did you also start an extremelyslow™ game for that output?
There're no errors, nothing suspicious - maybe you could create the missing en_US.UTF-8 locale but I don't see how this would cause games to be "just" slow.

Okay, I just came back from holiday, boot up my PC and I'm sitting here absolutely bewildered. TF2 works perfectly fine as does Cities Skylines --two of the games I was having the most issue with before. I haven't updated anything since I haven't had access to my PC so I have no idea what happened beyond possibly just Steam improving proton / linux support while I was away? Thanks for your help, I guess this is just one of those strange quirks of computing that happen from time to time.

Offline

#18 2022-07-29 20:10:12

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,514

Re: Games Extremely Slow with Proprietary Nvidia Drivers

Non determinisitic behavior can point to
1. race conditions
2. unnoticed side load (CPU, RAM, IO)
3. remote issues (for any online requriement)
4. temperature (heat induced throttling)

If this pops up again, you want to check on those things (search the wiki for cpufreq to look at CPU throtlling, top/iotop for side load and glxinfo for possible race conditions)
Make sure to have seen https://wiki.archlinux.org/title/NVIDIA … de_setting (parameter AND early loading to avodf races)

Online

Board footer

Powered by FluxBB