You are not logged in.

#1 2022-12-04 07:54:26

sainishwanth
Member
Registered: 2022-11-19
Posts: 14

[Solved]Steam games lagging when anything is running in the background

Steam and my games (Final fantasy xiv) run fine if I don't have anything running in the background but then moment I run anything such as a simple youtube video via firefox my games start to lag extremely (~15fps from 120fps), steam starts to slowdown too.

My Hardware (Laptop):
GTX 1650
i5 9300h
8gb DDR4 Memory
512gb SSD

Here's my HTOP ss while running FFXIV as well as firefox with a couple tabs
https://ibb.co/jv7czZk

When I had installed steam via pacman, it had also installed amdvlk and other amd dependencies, which I had subsequently uninstalled since I have an nvidia card and installed the required nvidia drivers.
During a recent system update with

sudo pacman -Syyu 

it had re installed some of those dependencies and my games wouldn't open again so I uninstalled. I believe it was after that when my steam started to lag with any background processors, not sure if they're related but just mentioning.

Last edited by sainishwanth (2022-12-04 18:19:34)

Offline

#2 2022-12-04 12:44:16

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,920

Re: [Solved]Steam games lagging when anything is running in the background

-Syyu

yy is only needed in some rare special cases and increases the load on mirrors , please stop using it .

When I had installed steam via pacman, it had also installed amdvlk and other amd dependencies, which I had subsequently uninstalled since I have an nvidia card and installed the required nvidia drivers.
During a recent system update with

sudo pacman -Syyu

it had re installed some of those dependencies and my games wouldn't open again so I uninstalled. I believe it was after that when my steam started to lag with any background processors, not sure if they're related but just mentioning.

There's a reason pacman wanted to re-install those dependencies, you should have investigated what that reason is to determine how to solve it cleanly .
Your system is very likely currently in a state of partial updates, which needs to be corrected before troubleshooting can start.

run pacman -Syu
post full outputs of

$ lspci -k
$ glxinfo -B     #comes with mesa-utils
$ pacman -Qs vulkan
$ vulkaninfo --summary    #comes with vulkan-tools
$ pacman -Qs nvidia

Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2022-12-04 12:55:22

sainishwanth
Member
Registered: 2022-11-19
Posts: 14

Re: [Solved]Steam games lagging when anything is running in the background

yy is only needed in some rare special cases and increases the load on mirrors , please stop using it .

Thank you, I shall remember that.

lspci -k

00:00.0 Host bridge: Intel Corporation 8th Gen Core 4-core Processor Host Bridge/DRAM Registers [Coffee Lake H] (rev 07)
	DeviceName: Onboard - Other
	Subsystem: ASUSTeK Computer Inc. Device 1a81
	Kernel driver in use: skl_uncore
lspci: Unable to load libkmod resources: error -2
00:01.0 PCI bridge: Intel Corporation 6th-10th Gen Core Processor PCIe Controller (x16) (rev 07)
	Subsystem: ASUSTeK Computer Inc. Device 1a81
	Kernel driver in use: pcieport
00:02.0 VGA compatible controller: Intel Corporation CoffeeLake-H GT2 [UHD Graphics 630]
	DeviceName: Onboard - Video
	Subsystem: ASUSTeK Computer Inc. Device 1a81
	Kernel driver in use: i915
00:04.0 Signal processing controller: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem (rev 07)
	DeviceName: Onboard - Other
	Subsystem: ASUSTeK Computer Inc. Device 1a81
	Kernel driver in use: proc_thermal
00:08.0 System peripheral: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model
	DeviceName: Onboard - Other
	Subsystem: ASUSTeK Computer Inc. Device 1a81
00:12.0 Signal processing controller: Intel Corporation Cannon Lake PCH Thermal Controller (rev 10)
	DeviceName: Onboard - Other
	Subsystem: ASUSTeK Computer Inc. Device 1a81
	Kernel driver in use: intel_pch_thermal
00:14.0 USB controller: Intel Corporation Cannon Lake PCH USB 3.1 xHCI Host Controller (rev 10)
	DeviceName: Onboard - Other
	Subsystem: ASUSTeK Computer Inc. Device 201f
	Kernel driver in use: xhci_hcd
00:14.2 RAM memory: Intel Corporation Cannon Lake PCH Shared SRAM (rev 10)
	DeviceName: Onboard - Other
	Subsystem: Intel Corporation Device 7270
00:15.0 Serial bus controller: Intel Corporation Cannon Lake PCH Serial IO I2C Controller #0 (rev 10)
	DeviceName: Onboard - Other
	Subsystem: ASUSTeK Computer Inc. Device 1a81
	Kernel driver in use: intel-lpss
00:16.0 Communication controller: Intel Corporation Cannon Lake PCH HECI Controller (rev 10)
	DeviceName: Onboard - Other
	Subsystem: ASUSTeK Computer Inc. Device 1a81
	Kernel driver in use: mei_me
00:17.0 RAID bus controller: Intel Corporation 82801 Mobile SATA Controller [RAID mode] (rev 10)
	DeviceName: Onboard - Other
	Subsystem: ASUSTeK Computer Inc. Device 1a81
	Kernel driver in use: ahci
00:1d.0 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port #9 (rev f0)
	Subsystem: ASUSTeK Computer Inc. Device 1a81
	Kernel driver in use: pcieport
00:1d.2 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port #11 (rev f0)
	Subsystem: ASUSTeK Computer Inc. Device 1a81
	Kernel driver in use: pcieport
00:1d.5 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port #14 (rev f0)
	Subsystem: ASUSTeK Computer Inc. Device 1a81
	Kernel driver in use: pcieport
00:1d.6 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port #15 (rev f0)
	Subsystem: ASUSTeK Computer Inc. Device 1a81
	Kernel driver in use: pcieport
00:1e.0 Communication controller: Intel Corporation Cannon Lake PCH Serial IO UART Host Controller (rev 10)
	DeviceName: Onboard - Other
	Subsystem: ASUSTeK Computer Inc. Device 1a81
	Kernel driver in use: intel-lpss
00:1e.3 Serial bus controller: Intel Corporation Cannon Lake PCH SPI Host Controller (rev 10)
	DeviceName: Onboard - Other
	Subsystem: ASUSTeK Computer Inc. Device 1a81
	Kernel driver in use: intel-lpss
➜  Crime-Scene-Analysis (main) lspci -k                                                                                                                                   ✭
00:00.0 Host bridge: Intel Corporation 8th Gen Core 4-core Processor Host Bridge/DRAM Registers [Coffee Lake H] (rev 07)
	DeviceName: Onboard - Other
	Subsystem: ASUSTeK Computer Inc. Device 1a81
	Kernel driver in use: skl_uncore
lspci: Unable to load libkmod resources: error -2
00:01.0 PCI bridge: Intel Corporation 6th-10th Gen Core Processor PCIe Controller (x16) (rev 07)
	Subsystem: ASUSTeK Computer Inc. Device 1a81
	Kernel driver in use: pcieport
00:02.0 VGA compatible controller: Intel Corporation CoffeeLake-H GT2 [UHD Graphics 630]
	DeviceName: Onboard - Video
	Subsystem: ASUSTeK Computer Inc. Device 1a81
	Kernel driver in use: i915
00:04.0 Signal processing controller: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem (rev 07)
	DeviceName: Onboard - Other
	Subsystem: ASUSTeK Computer Inc. Device 1a81
	Kernel driver in use: proc_thermal
00:08.0 System peripheral: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model
	DeviceName: Onboard - Other
	Subsystem: ASUSTeK Computer Inc. Device 1a81
00:12.0 Signal processing controller: Intel Corporation Cannon Lake PCH Thermal Controller (rev 10)
	DeviceName: Onboard - Other
	Subsystem: ASUSTeK Computer Inc. Device 1a81
	Kernel driver in use: intel_pch_thermal
00:14.0 USB controller: Intel Corporation Cannon Lake PCH USB 3.1 xHCI Host Controller (rev 10)
	DeviceName: Onboard - Other
	Subsystem: ASUSTeK Computer Inc. Device 201f
	Kernel driver in use: xhci_hcd
00:14.2 RAM memory: Intel Corporation Cannon Lake PCH Shared SRAM (rev 10)
	DeviceName: Onboard - Other
	Subsystem: Intel Corporation Device 7270
00:15.0 Serial bus controller: Intel Corporation Cannon Lake PCH Serial IO I2C Controller #0 (rev 10)
	DeviceName: Onboard - Other
	Subsystem: ASUSTeK Computer Inc. Device 1a81
	Kernel driver in use: intel-lpss
00:16.0 Communication controller: Intel Corporation Cannon Lake PCH HECI Controller (rev 10)
	DeviceName: Onboard - Other
	Subsystem: ASUSTeK Computer Inc. Device 1a81
	Kernel driver in use: mei_me
00:17.0 RAID bus controller: Intel Corporation 82801 Mobile SATA Controller [RAID mode] (rev 10)
	DeviceName: Onboard - Other
	Subsystem: ASUSTeK Computer Inc. Device 1a81
	Kernel driver in use: ahci
00:1d.0 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port #9 (rev f0)
	Subsystem: ASUSTeK Computer Inc. Device 1a81
	Kernel driver in use: pcieport
00:1d.2 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port #11 (rev f0)
	Subsystem: ASUSTeK Computer Inc. Device 1a81
	Kernel driver in use: pcieport
00:1d.5 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port #14 (rev f0)
	Subsystem: ASUSTeK Computer Inc. Device 1a81
	Kernel driver in use: pcieport
00:1d.6 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port #15 (rev f0)
	Subsystem: ASUSTeK Computer Inc. Device 1a81
	Kernel driver in use: pcieport
00:1e.0 Communication controller: Intel Corporation Cannon Lake PCH Serial IO UART Host Controller (rev 10)
	DeviceName: Onboard - Other
	Subsystem: ASUSTeK Computer Inc. Device 1a81
	Kernel driver in use: intel-lpss
00:1e.3 Serial bus controller: Intel Corporation Cannon Lake PCH SPI Host Controller (rev 10)
	DeviceName: Onboard - Other
	Subsystem: ASUSTeK Computer Inc. Device 1a81
	Kernel driver in use: intel-lpss
00:1f.0 ISA bridge: Intel Corporation HM470 Chipset LPC/eSPI Controller (rev 10)
	DeviceName: Onboard - Other
	Subsystem: ASUSTeK Computer Inc. Device 1a81
00:1f.3 Audio device: Intel Corporation Cannon Lake PCH cAVS (rev 10)
	DeviceName: Onboard - Sound
	Subsystem: ASUSTeK Computer Inc. Device 1a81
	Kernel driver in use: snd_hda_intel
00:1f.4 SMBus: Intel Corporation Cannon Lake PCH SMBus Controller (rev 10)
	DeviceName: Onboard - Other
	Subsystem: ASUSTeK Computer Inc. Device 1a81
	Kernel driver in use: i801_smbus
00:1f.5 Serial bus controller: Intel Corporation Cannon Lake PCH SPI Controller (rev 10)
	DeviceName: Onboard - Other
	Subsystem: ASUSTeK Computer Inc. Device 1a81
	Kernel driver in use: intel-spi
01:00.0 3D controller: NVIDIA Corporation TU117M [GeForce GTX 1650 Mobile / Max-Q] (rev a1)
	Subsystem: ASUSTeK Computer Inc. Device 1a81
	Kernel driver in use: nvidia
02:00.0 Non-Volatile memory controller: Intel Corporation Device 0975 (rev 03)
	Subsystem: Intel Corporation Device 8410
	Kernel driver in use: nvme
03:00.0 Non-Volatile memory controller: Intel Corporation Device 0975
	Subsystem: Intel Corporation Device 8510
	Kernel driver in use: nvme
04:00.0 Network controller: Intel Corporation Wi-Fi 6 AX200 (rev 1a)
	Subsystem: Intel Corporation Wi-Fi 6 AX200NGW
	Kernel driver in use: iwlwifi
05:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
	Subsystem: ASUSTeK Computer Inc. Device 200f
	Kernel driver in use: r8169

glxinfo -B

name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Intel (0x8086)
    Device: Mesa Intel(R) UHD Graphics 630 (CFL GT2) (0x3e9b)
    Version: 22.2.3
    Accelerated: yes
    Video memory: 7800MB
    Unified memory: yes
    Preferred profile: core (0x1)
    Max core profile version: 4.6
    Max compat profile version: 4.6
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) UHD Graphics 630 (CFL GT2)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 22.2.3
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6 (Compatibility Profile) Mesa 22.2.3
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 22.2.3
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

pacman -Qs vulkan

local/lib32-nvidia-utils 525.60.11-1
    NVIDIA drivers utilities (32-bit)
local/lib32-vulkan-icd-loader 1.3.235-1
    Vulkan Installable Client Driver (ICD) Loader (32-bit)
local/nvidia-utils 525.60.11-1
    NVIDIA drivers utilities
local/vulkan-icd-loader 1.3.235-1
    Vulkan Installable Client Driver (ICD) Loader

vulkaninfo --summary

Instance Extensions: count = 19
-------------------------------
VK_EXT_acquire_xlib_display            : extension revision 1
VK_EXT_debug_report                    : extension revision 10
VK_EXT_debug_utils                     : extension revision 2
VK_EXT_direct_mode_display             : extension revision 1
VK_EXT_display_surface_counter         : extension revision 1
VK_KHR_device_group_creation           : extension revision 1
VK_KHR_display                         : extension revision 23
VK_KHR_external_fence_capabilities     : extension revision 1
VK_KHR_external_memory_capabilities    : extension revision 1
VK_KHR_external_semaphore_capabilities : extension revision 1
VK_KHR_get_display_properties2         : extension revision 1
VK_KHR_get_physical_device_properties2 : extension revision 2
VK_KHR_get_surface_capabilities2       : extension revision 1
VK_KHR_portability_enumeration         : extension revision 1
VK_KHR_surface                         : extension revision 25
VK_KHR_surface_protected_capabilities  : extension revision 1
VK_KHR_wayland_surface                 : extension revision 6
VK_KHR_xcb_surface                     : extension revision 6
VK_KHR_xlib_surface                    : extension revision 6

Instance Layers: count = 5
--------------------------
VK_LAYER_NV_optimus               NVIDIA Optimus layer         1.3.224  version 1
VK_LAYER_VALVE_steam_fossilize_32 Steam Pipeline Caching Layer 1.3.207  version 1
VK_LAYER_VALVE_steam_fossilize_64 Steam Pipeline Caching Layer 1.3.207  version 1
VK_LAYER_VALVE_steam_overlay_32   Steam Overlay Layer          1.3.207  version 1
VK_LAYER_VALVE_steam_overlay_64   Steam Overlay Layer          1.3.207  version 1

Devices:
========
GPU0:
	apiVersion         = 4206816 (1.3.224)
	driverVersion      = 2202993344 (0x834f02c0)
	vendorID           = 0x10de
	deviceID           = 0x1f91
	deviceType         = PHYSICAL_DEVICE_TYPE_DISCRETE_GPU
	deviceName         = NVIDIA GeForce GTX 1650
	driverID           = DRIVER_ID_NVIDIA_PROPRIETARY
	driverName         = NVIDIA
	driverInfo         = 525.60.11
	conformanceVersion = 1.3.3.1
	deviceUUID         = a1017ac5-5255-a210-46dd-1effdfcba9f7
	driverUUID         = c176f85d-7e4e-53b9-b451-445cd4a3f277

pacman -Qs nvidia

local/egl-wayland 2:1.1.11-2
    EGLStream-based Wayland external platform
local/lib32-nvidia-utils 525.60.11-1
    NVIDIA drivers utilities (32-bit)
local/libvdpau 1.5-1
    Nvidia VDPAU library
local/libxnvctrl 525.60.11-2
    NVIDIA NV-CONTROL X extension
local/nvidia 525.60.11-2
    NVIDIA drivers for linux
local/nvidia-prime 1.0-4
    NVIDIA Prime Render Offload configuration and utilities
local/nvidia-settings 525.60.11-2
    Tool for configuring the NVIDIA graphics driver
local/nvidia-utils 525.60.11-1
    NVIDIA drivers utilities

Offline

#4 2022-12-04 13:10:56

sainishwanth
Member
Registered: 2022-11-19
Posts: 14

Re: [Solved]Steam games lagging when anything is running in the background

Another point I would like to mention is that under steam's system information page It only detects my Integrated GPU. My games run on my dedicated card though so not sure if its related to this.

Video Card:
    Driver:  Intel Mesa Intel(R) UHD Graphics 630 (CFL GT2)
    Driver Version:  4.6 (Compatibility Profile) Mesa 22.2.3
    OpenGL Version: 4.6
    Desktop Color Depth: 24 bits per pixel
    Monitor Refresh Rate: 120 Hz
    VendorID:  0x8086
    DeviceID:  0x3e9b
    Revision Not Detected
    Number of Monitors:  2
    Number of Logical Video Cards:  1
    Primary Display Resolution:  1920 x 1080
    Desktop Resolution: 1920 x 1080
    Primary Display Size: 13.54" x 7.64" (15.51" diag)
                                            34.4cm x 19.4cm (39.4cm diag)
    Primary VRAM Not Detected

Offline

#5 2022-12-04 13:17:24

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,920

Re: [Solved]Steam games lagging when anything is running in the background

On a intel/nvidia PRIME system some things need to be installed to allow the intel (opensource) and nvidia (proprietary) drivers to work together.
OpenGL often works ootb, but vulkan is trickier .

please install vulkan-intel , vulkan-mesa-layers and their lib32 counterparts.

post a fresh vulkaninfo --summary , also prime-run glxinfo -B


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#6 2022-12-04 14:05:58

sainishwanth
Member
Registered: 2022-11-19
Posts: 14

Re: [Solved]Steam games lagging when anything is running in the background

Installed them and their lib32 versions

vulkaninfo --summary

Devices:
========
GPU0:
	apiVersion         = 4206816 (1.3.224)
	driverVersion      = 92282883 (0x5802003)
	vendorID           = 0x8086
	deviceID           = 0x3e9b
	deviceType         = PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU
	deviceName         = Intel(R) UHD Graphics 630 (CFL GT2)
	driverID           = DRIVER_ID_INTEL_OPEN_SOURCE_MESA
	driverName         = Intel open-source Mesa driver
	driverInfo         = Mesa 22.2.3
	conformanceVersion = 1.3.0.0
	deviceUUID         = b897dce2-e9bb-6ce1-d93c-0cef812519a7
	driverUUID         = ed479b3b-90db-801f-df09-f0fe7e5708cd
GPU1:
	apiVersion         = 4206816 (1.3.224)
	driverVersion      = 2202993344 (0x834f02c0)
	vendorID           = 0x10de
	deviceID           = 0x1f91
	deviceType         = PHYSICAL_DEVICE_TYPE_DISCRETE_GPU
	deviceName         = NVIDIA GeForce GTX 1650
	driverID           = DRIVER_ID_NVIDIA_PROPRIETARY
	driverName         = NVIDIA
	driverInfo         = 525.60.11
	conformanceVersion = 1.3.3.1
	deviceUUID         = a1017ac5-5255-a210-46dd-1effdfcba9f7
	driverUUID         = c176f85d-7e4e-53b9-b451-445cd4a3f277

prime-run glxinfo -B

name of display: :0
display: :0  screen: 0
direct rendering: Yes
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 4096 MB
    Total available memory: 4096 MB
    Currently available dedicated video memory: 3897 MB
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: NVIDIA GeForce GTX 1650/PCIe/SSE2
OpenGL core profile version string: 4.6.0 NVIDIA 525.60.11
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 525.60.11
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 525.60.11
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

Offline

#7 2022-12-04 14:23:19

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,728

Re: [Solved]Steam games lagging when anything is running in the background

Are you running a compositor at the same time? What's your general environment? If xf86-video-intel is installed remove it

Offline

#8 2022-12-04 15:09:28

sainishwanth
Member
Registered: 2022-11-19
Posts: 14

Re: [Solved]Steam games lagging when anything is running in the background

V1del wrote:

Are you running a compositor at the same time? What's your general environment? If xf86-video-intel is installed remove it

Yes, I am running picom in the background.

I am using DWM as my window manager.

No, I do not have xf86-video-intel installed.

Last edited by sainishwanth (2022-12-04 16:27:14)

Offline

#9 2022-12-04 16:45:23

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,728

Re: [Solved]Steam games lagging when anything is running in the background

Does the situation change if you disable/stop picom during this? That concurrent GL contexts can lead to a slowdown especially in combination with firefox and games is somewhat "'normal" can you reproduce with chromium instead of Firefox fwiw? I've often noticed isdues with firefox and other GL contexts that plain don't happen with chromium not entirely sure why that's the case though

Offline

#10 2022-12-04 18:09:09

sainishwanth
Member
Registered: 2022-11-19
Posts: 14

Re: [Solved]Steam games lagging when anything is running in the background

V1del wrote:

Does the situation change if you disable/stop picom during this?


Nope, killing picom doesn't seem to change anything.

V1del wrote:

That concurrent GL contexts can lead to a slowdown especially in combination with firefox and games is somewhat "'normal" can you reproduce with chromium instead of Firefox fwiw? I've often noticed isdues with firefox and other GL contexts that plain don't happen with chromium not entirely sure why that's the case though

Oh wow, that seems to have fixed it (Using Chromium). There's still a small drop in fps (~5-10fps) but that seems normal. Seems to have been a problem with firefox since I had only tried this with firefox and librewolf.

Thank you everyone! Really appreciate the help!

Last edited by sainishwanth (2022-12-04 18:19:02)

Offline

Board footer

Powered by FluxBB