Steam lag

Anything related to gaming on Linux Mint including game discussion or questions concerning Steam or Wine.
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
sugarfree
Level 1
Level 1
Posts: 13
Joined: Mon Oct 10, 2022 2:33 pm

Steam lag

Post by sugarfree »

Hello,
Why are steam games so laggy after 3-6 minutes( quake 3 arena, cs go). When i start the game everything is much smoother than on windows, but after few minutes, the game almost frezee.i have installed gamemode, 5.19.11-xanmod1 and vulcan.

Code: Select all

System:
  Kernel: 5.19.11-xanmod1 x86_64 bits: 64 compiler: gcc v: 11.2.0 Desktop: Cinnamon 5.4.12
    tk: GTK 3.24.33 wm: Mutter dm: LightDM Distro: Linux Mint 21 Vanessa base: Ubuntu 22.04 jammy
Machine:
  Type: Desktop Mobo: Gigabyte model: EP31-DS3L serial: <superuser required> BIOS: Award v: FC
    date: 09/16/2008
CPU:
  Info: quad core model: Intel Core2 Quad Q9550 bits: 64 type: MCP arch: Core Yorkfield rev: A
    cache: L1: 256 KiB L2: 12 MiB
  Speed (MHz): avg: 3604 min/max: N/A cores: 1: 3604 2: 3604 3: 3604 4: 3604 bogomips: 28835
  Flags: ht lm nx pae sse sse2 sse3 sse4_1 ssse3 vmx
Graphics:
  Device-1: NVIDIA GM206 [GeForce GTX 960] driver: nvidia v: 515.76 pcie: speed: 2.5 GT/s
    lanes: 16 ports: active: none off: HDMI-A-1 empty: DP-1,DVI-D-1,DVI-I-1 bus-ID: 01:00.0
    chip-ID: 10de:1401
  Display: x11 server: X.Org v: 1.21.1.3 driver: X: loaded: nvidia
    unloaded: fbdev,modesetting,nouveau,vesa gpu: nvidia display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 101
  Monitor-1: HDMI-0 res: 1920x1080 dpi: 102 diag: 547mm (21.5")
  OpenGL: renderer: NVIDIA GeForce GTX 960/PCIe/SSE2 v: 4.6.0 NVIDIA 515.76 direct render: Yes
Audio:
  Device-1: Intel NM10/ICH7 Family High Definition Audio vendor: Gigabyte GA-D525TUD
    driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 chip-ID: 8086:27d8
  Device-2: NVIDIA GM206 High Definition Audio driver: snd_hda_intel v: kernel pcie:
    speed: 2.5 GT/s lanes: 16 bus-ID: 01:00.1 chip-ID: 10de:0fba
  Device-3: Kingston HyperX Cloud Alpha S type: USB driver: hid-generic,snd-usb-audio,usbhid
    bus-ID: 5-2:2 chip-ID: 0951:16ed
  Sound Server-1: ALSA v: k5.19.11-xanmod1 running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: yes
  Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Gigabyte driver: r8169
    v: kernel pcie: speed: 2.5 GT/s lanes: 1 port: d000 bus-ID: 03:00.0 chip-ID: 10ec:8168
  IF: enp3s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives:
  Local Storage: total: 530.98 GiB used: 220.92 GiB (41.6%)
  ID-1: /dev/sda vendor: Crucial model: CT250MX500SSD1 size: 232.89 GiB speed: <unknown>
    serial: <filter>
  ID-2: /dev/sdb vendor: Hitachi model: HDT725032VLA360 size: 298.09 GiB speed: <unknown>
    serial: <filter>
Partition:
  ID-1: / size: 66.71 GiB used: 36.05 GiB (54.0%) fs: ext4 dev: /dev/sda1
  ID-2: /boot/efi size: 900.2 MiB used: 5.2 MiB (0.6%) fs: vfat dev: /dev/sdb5
Swap:
  ID-1: swap-1 type: file size: 7 GiB used: 545 MiB (7.6%) priority: -2 file: /swapfile
Sensors:
  System Temperatures: cpu: 50.0 C mobo: N/A gpu: nvidia temp: 47 C
  Fan Speeds (RPM): N/A gpu: nvidia fan: 26%
Repos:
  Packages: 2545 note: see --pkg apt: 2521 flatpak: 24
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/graphics-drivers-ppa-jammy.list
    1: deb http: //ppa.launchpad.net/graphics-drivers/ppa/ubuntu jammy main
  Active apt repos in: /etc/apt/sources.list.d/lutris-team-lutris-jammy.list
    1: deb http: //ppa.launchpad.net/lutris-team/lutris/ubuntu jammy main
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
    1: deb https: //quantum-mirror.hu/mirrors/linuxmint/packages vanessa main upstream import backport
    2: deb http: //ftp.arnes.si/pub/mirrors/ubuntu jammy main restricted universe multiverse
    3: deb http: //ftp.arnes.si/pub/mirrors/ubuntu jammy-updates main restricted universe multiverse
    4: deb http: //ftp.arnes.si/pub/mirrors/ubuntu jammy-backports main restricted universe multiverse
    5: deb http: //security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
  Active apt repos in: /etc/apt/sources.list.d/protonvpn-stable.list
    1: deb [arch="all", signed-by=/usr/share/keyrings/protonvpn-stable-archive-keyring.gpg] https: //repo.protonvpn.com/debian stable main
  Active apt repos in: /etc/apt/sources.list.d/xanmod-kernel.list
    1: deb http: //deb.xanmod.org releases main
  Active apt repos in: /etc/apt/sources.list.d/winehq-jammy.sources
    1: deb [arch=amd64 i386] https: //dl.winehq.org/wine-builds/ubuntu jammy main
Info:
  Processes: 228 Uptime: 4h 21m Memory: 3.84 GiB used: 2.17 GiB (56.6%) Init: systemd v: 249
  runlevel: 5 Compilers: gcc: 11.2.0 alt: 11 Client: Cinnamon v: 5.4.12 inxi: 3.3.13
Last edited by LockBot on Mon Apr 10, 2023 10:00 pm, edited 3 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
cretsiah
Level 5
Level 5
Posts: 503
Joined: Wed Jul 22, 2020 5:44 am

Re: Steam lag

Post by cretsiah »

looks like

- a lack of ram would be 1 issue

- are you allowing shader cache to pre-download before running games, or is shader caching being done on the fly? this could be issue 2
sugarfree
Level 1
Level 1
Posts: 13
Joined: Mon Oct 10, 2022 2:33 pm

Re: Steam lag

Post by sugarfree »

thank you for your reply.
I have 4GB of ram and i played cs go on windows 10 with no problems.
I have also 5GB of swap.

yes shader pre cashing is on. I just tried with background processing of vulcan shaders on. Same freeze after 10 min.
I just found out if i switch to example terminal with alt+tab and back i can play again.
What that could be?
User avatar
MiZoG
Level 8
Level 8
Posts: 2372
Joined: Fri Jan 26, 2018 8:30 pm
Location: Athens, Greece

Re: Steam lag

Post by MiZoG »

You shouldn't face any problem at all with those games.
You exceed system requirements by far.
Caching of shaders could slow down performance once in a while and nothing more.
Mangohud would show you how much ram / vram you use while playing. I doubt you'd see anything unusual.
Unless a piece of your hardware is failing or another process interferes and takes unnecessary cpu cycles while gaming,
there are 2 suspects: xanmod & nvidia drivers (especially if you installed them from the ubuntu ppa).
Boot temporarily into the "default" kernel. Test gaming performance.
If you observe the same behaviour, purge your current driver and install 510 or 470 from distro's repos.
I doubt newer drivers bring any improvement for the games you play.
sugarfree
Level 1
Level 1
Posts: 13
Joined: Mon Oct 10, 2022 2:33 pm

Re: Steam lag

Post by sugarfree »

Meantime i installed mx linux with 470 drivers and default kernel and it's the same.
And now installed mint again and in half life 2 i can play 2 hours with no problem and next time i got again an error
directx9 not responding in few minutes. Now i know that directx9 is a problem but what can i do?
cretsiah
Level 5
Level 5
Posts: 503
Joined: Wed Jul 22, 2020 5:44 am

Re: Steam lag

Post by cretsiah »

is your system compatible with OpenGL? i know it might sound stupid but just asking [ sorry looks like it is running OopenGL ]

you could try putting this into set launch options
PROTON_USE_WINED3D=1 %command%

could also try

PROTON_NO_D3D11

i know after my system crashed all my previously working Far Cry series games have gone weird in the graphics so i am attempting to find the right combination of settings

however i did find Kernel 18.0 to high, laggy and lost my wifi connection

so maybe you having the same problem with kernel 5.19
BenjaminMarshalll
Level 1
Level 1
Posts: 4
Joined: Thu Dec 08, 2022 5:12 pm

Re: Steam lag

Post by BenjaminMarshalll »

sugarfree wrote: Mon Oct 10, 2022 2:47 pm Hello,
Why are steam games so laggy after 3-6 minutes( quake 3 arena, cs go). When i start the game everything is much smoother than on windows, but after few minutes, the game almost frezee.i have installed gamemode, 5.19.11-xanmod1 and vulcan.

Code: Select all

System:
  Kernel: 5.19.11-xanmod1 x86_64 bits: 64 compiler: gcc v: 11.2.0 Desktop: Cinnamon 5.4.12
    tk: GTK 3.24.33 wm: Mutter dm: LightDM Distro: Linux Mint 21 Vanessa base: Ubuntu 22.04 jammy
Machine:
  Type: Desktop Mobo: Gigabyte model: EP31-DS3L serial: <superuser required> BIOS: Award v: FC
    date: 09/16/2008
CPU:
  Info: quad core model: Intel Core2 Quad Q9550 bits: 64 type: MCP arch: Core Yorkfield rev: A
    cache: L1: 256 KiB L2: 12 MiB
  Speed (MHz): avg: 3604 min/max: N/A cores: 1: 3604 2: 3604 3: 3604 4: 3604 bogomips: 28835
  Flags: ht lm nx pae sse sse2 sse3 sse4_1 ssse3 vmx
Graphics:
  Device-1: NVIDIA GM206 [GeForce GTX 960] driver: nvidia v: 515.76 pcie: speed: 2.5 GT/s
    lanes: 16 ports: active: none off: HDMI-A-1 empty: DP-1,DVI-D-1,DVI-I-1 bus-ID: 01:00.0
    chip-ID: 10de:1401
  Display: x11 server: X.Org v: 1.21.1.3 driver: X: loaded: nvidia
    unloaded: fbdev,modesetting,nouveau,vesa gpu: nvidia display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 101
  Monitor-1: HDMI-0 res: 1920x1080 dpi: 102 diag: 547mm (21.5")
  OpenGL: renderer: NVIDIA GeForce GTX 960/PCIe/SSE2 v: 4.6.0 NVIDIA 515.76 direct render: Yes
Audio:
  Device-1: Intel NM10/ICH7 Family High Definition Audio vendor: Gigabyte GA-D525TUD
    driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 chip-ID: 8086:27d8
  Device-2: NVIDIA GM206 High Definition Audio driver: snd_hda_intel v: kernel pcie:
    speed: 2.5 GT/s lanes: 16 bus-ID: 01:00.1 chip-ID: 10de:0fba
  Device-3: Kingston HyperX Cloud Alpha S type: USB driver: hid-generic,snd-usb-audio,usbhid
    bus-ID: 5-2:2 chip-ID: 0951:16ed
  Sound Server-1: ALSA v: k5.19.11-xanmod1 running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: yes
  Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Gigabyte driver: r8169
    v: kernel pcie: speed: 2.5 GT/s lanes: 1 port: d000 bus-ID: 03:00.0 chip-ID: 10ec:8168
  IF: enp3s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives:
  Local Storage: total: 530.98 GiB used: 220.92 GiB (41.6%)
  ID-1: /dev/sda vendor: Crucial model: CT250MX500SSD1 size: 232.89 GiB speed: <unknown>
    serial: <filter>
  ID-2: /dev/sdb vendor: Hitachi model: HDT725032VLA360 size: 298.09 GiB speed: <unknown>
    serial: <filter>
Partition:
  ID-1: / size: 66.71 GiB used: 36.05 GiB (54.0%) fs: ext4 dev: /dev/sda1
  ID-2: /boot/efi size: 900.2 MiB used: 5.2 MiB (0.6%) fs: vfat dev: /dev/sdb5
Swap:
  ID-1: swap-1 type: file size: 7 GiB used: 545 MiB (7.6%) priority: -2 file: /swapfile
Sensors:
  System Temperatures: cpu: 50.0 C mobo: N/A gpu: nvidia temp: 47 C
  Fan Speeds (RPM): N/A gpu: nvidia fan: 26%
Repos:
  Packages: 2545 note: see --pkg apt: 2521 flatpak: 24
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/graphics-drivers-ppa-jammy.list
    1: deb http: //ppa.launchpad.net/graphics-drivers/ppa/ubuntu jammy main
  Active apt repos in: /etc/apt/sources.list.d/lutris-team-lutris-jammy.list
    1: deb http: //ppa.launchpad.net/lutris-team/lutris/ubuntu jammy main
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
    1: deb https: //quantum-mirror.hu/mirrors/linuxmint/packages vanessa main upstream import backport
    2: deb http: //ftp.arnes.si/pub/mirrors/ubuntu jammy main restricted universe multiverse
    3: deb http: //ftp.arnes.si/pub/mirrors/ubuntu jammy-updates main restricted universe multiverse
    4: deb http: //ftp.arnes.si/pub/mirrors/ubuntu jammy-backports main restricted universe multiverse
    5: deb http: //security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
  Active apt repos in: /etc/apt/sources.list.d/protonvpn-stable.list
    1: deb [arch="all", signed-by=/usr/share/keyrings/protonvpn-stable-archive-keyring.gpg] https: //repo.protonvpn.com/debian stable main
  Active apt repos in: /etc/apt/sources.list.d/xanmod-kernel.list
    1: deb http: //deb.xanmod.org releases main
  Active apt repos in: /etc/apt/sources.list.d/winehq-jammy.sources
    1: deb [arch=amd64 i386] https: //dl.winehq.org/wine-builds/ubuntu jammy main
Info:
  Processes: 228 Uptime: 4h 21m Memory: 3.84 GiB used: 2.17 GiB (56.6%) Init: systemd v: 249
  runlevel: 5 Compilers: gcc: 11.2.0 alt: 11 Client: Cinnamon v: 5.4.12 inxi: 3.3.13
Get yourself more RAM. This is the easiest and most reliable way. Or the video card is weak.
sugarfree
Level 1
Level 1
Posts: 13
Joined: Mon Oct 10, 2022 2:33 pm

Re: Steam lag

Post by sugarfree »

Guys i found the problem. I tested ram with software and i saw that one of the 2gb is damaged. I changed damaged ram and woila everything
works like a charm. :D
Locked

Return to “Gaming”