Desktop is laggy when game is minimized or in background.

When I have any game minimized or unfocused in the background I get noticeable lag on the desktop. Mouse lag, window animation lag, etc. This happens regardless of how graphically demanding a game is. I've got Witcher 3 open in the background right now and even though I'm sitting around 15% CPU usage everything is laggy.

AMD Ryzen 7 3800x
16GB 3200MHz

Also using dual monitors. One is at 144Hz and the other at 75.

The better way to share information would be

inxi -Fxxxza --no-host
1 Like

Sure thing. Here's the output with all my information:

System:    Kernel: 5.4.6-2-MANJARO x86_64 bits: 64 compiler: gcc v: 9.2.0 
           parameters: BOOT_IMAGE=/boot/vmlinuz-5.4-x86_64 root=UUID=e89a1423-f2e1-48a3-aca0-2d3f9a58ccd4 rw 
           bluetooth.disable_ertm=1 quiet apparmor=1 security=apparmor resume=UUID=6bee7c6d-f867-4d47-9f7c-449d3294f7d6 
           Desktop: Gnome 3.34.2 wm: gnome-shell dm: GDM 3.34.1 Distro: Manjaro Linux 
Machine:   Type: Desktop System: Gigabyte product: X570 AORUS MASTER v: -CF serial: <filter> 
           Mobo: Gigabyte model: X570 AORUS MASTER v: x.x serial: <filter> UEFI: American Megatrends v: F4 date: 06/13/2019 
CPU:       Topology: 8-Core model: AMD Ryzen 7 3800X bits: 64 type: MT MCP arch: Zen family: 17 (23) model-id: 71 (113) 
           stepping: N/A microcode: 8701012 L2 cache: 4096 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 124857 
           Speed: 2200 MHz min/max: 2200/3900 MHz boost: enabled Core speeds (MHz): 1: 2200 2: 2199 3: 2198 4: 2197 5: 2000 
           6: 1999 7: 2423 8: 2722 9: 2200 10: 2199 11: 1999 12: 1995 13: 2843 14: 2435 15: 2200 16: 2199 
           Vulnerabilities: Type: itlb_multihit status: Not affected 
           Type: l1tf status: Not affected 
           Type: mds status: Not affected 
           Type: meltdown status: Not affected 
           Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl and seccomp 
           Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization 
           Type: spectre_v2 mitigation: Full AMD retpoline, IBPB: conditional, STIBP: always-on, RSB filling 
           Type: tsx_async_abort status: Not affected 
Graphics:  Device-1: NVIDIA GP102 [GeForce GTX 1080 Ti] driver: nvidia v: 440.44 bus ID: 0a:00.0 chip ID: 10de:1b06 
           Display: x11 server: 1.20.6 driver: nvidia compositor: gnome-shell resolution: <xdpyinfo missing> 
           OpenGL: renderer: GeForce GTX 1080 Ti/PCIe/SSE2 v: 4.6.0 NVIDIA 440.44 direct render: Yes 
Audio:     Device-1: NVIDIA GP102 HDMI Audio driver: snd_hda_intel v: kernel bus ID: 0a:00.1 chip ID: 10de:10ef 
           Device-2: Advanced Micro Devices [AMD] Starship/Matisse HD Audio vendor: Gigabyte driver: snd_hda_intel v: kernel 
           bus ID: 0c:00.4 chip ID: 1022:1487 
           Device-3: Texas Instruments ATH-G1WL type: USB driver: hid-generic,snd-usb-audio,usbhid bus ID: 5-4:5 
           chip ID: 0451:16ba serial: <filter> 
           Device-4: C-Media ATH-G1WL type: USB driver: hid-generic,snd-usb-audio,usbhid bus ID: 5-2.1.4:10 chip ID: 0d8c:0012 
           Sound Server: ALSA v: k5.4.6-2-MANJARO 
Network:   Device-1: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel port: f000 bus ID: 04:00.0 chip ID: 8086:2723 
           IF: wlp4s0 state: up mac: <filter> 
           Device-2: Intel I211 Gigabit Network vendor: Gigabyte driver: igb v: 5.6.0-k port: d000 bus ID: 05:00.0 
           chip ID: 8086:1539 
           IF: enp5s0 state: down mac: <filter> 
           Device-3: Realtek vendor: Gigabyte driver: r8169 v: kernel port: c000 bus ID: 06:00.0 chip ID: 10ec:8125 
           IF: enp6s0 state: down mac: <filter> 
Drives:    Local Storage: total: 4.38 TiB used: 1.21 TiB (27.5%) 
           ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 950 PRO 512GB size: 476.94 GiB block size: physical: 512 B 
           logical: 512 B speed: 31.6 Gb/s lanes: 4 serial: <filter> rev: 1B0QBXX7 scheme: GPT 
           ID-2: /dev/sda vendor: Corsair model: Force GS size: 167.68 GiB block size: physical: 512 B logical: 512 B 
           speed: 6.0 Gb/s serial: <filter> rev: 5.07 scheme: MBR 
           ID-3: /dev/sdb vendor: Seagate model: ST4000DM005-2DP166 size: 3.64 TiB block size: physical: 4096 B logical: 512 B 
           speed: 6.0 Gb/s rotation: 5980 rpm serial: <filter> rev: 0001 scheme: GPT 
           ID-4: /dev/sdc type: USB vendor: Samsung model: Flash Drive size: 119.53 GiB block size: physical: 512 B 
           logical: 512 B speed: <unknown> serial: <filter> rev: 1100 scheme: MBR 
Partition: ID-1: / raw size: 159.35 GiB size: 155.85 GiB (97.80%) used: 121.75 GiB (78.1%) fs: ext4 dev: /dev/sda2 
           ID-2: swap-1 size: 7.81 GiB used: 350.8 MiB (4.4%) fs: swap swappiness: 60 (default) cache pressure: 100 (default) 
           dev: /dev/sda3 
Sensors:   System Temperatures: cpu: 50.1 C mobo: N/A gpu: nvidia temp: 36 C 
           Fan Speeds (RPM): N/A gpu: nvidia fan: 23% 
Info:      Processes: 460 Uptime: 1d 20h 01m Memory: 15.63 GiB used: 7.27 GiB (46.5%) Init: systemd v: 242 Compilers: 
           gcc: 9.2.0 clang: 9.0.0 Shell: bash v: 5.0.11 running in: tilda inxi: 3.0.37 

I have a similar issue but only with Crysis 2 running via Steam Proton and if I am watching a YouTube video on my secondary monitor at the same time as gaming sometimes causes it too. Interesting to see if anyone has a fix or any ideas as to the cause as I have noticed this since switching to Manjaro KDE last year.

Forum kindly sponsored by