Screen capture very laggy

Hello Everyone,

System:
Kernel: 6.5.3-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
clocksource: tsc available: hpet,acpi_pm
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=0d041406-fe13-41c0-b9f2-4c294e2a1d84 rw rootflags=subvol=@
intel_iommu=on iommu=pt quiet quiet rd.udev.log_priority=3
vt.global_cursor_default=0
resume=UUID=dff8cd6b-a08c-479d-bb33-80f49a2c20cb loglevel=3 ibt=off
Desktop: KDE Plasma v: 5.27.8 tk: Qt v: 5.15.10 wm: kwin_x11 vt: 2
dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
Type: Desktop System: Micro-Star product: MS-7C88 v: 1.0
serial: <superuser required>
Mobo: Micro-Star model: B460M-A PRO (MS-7C88) v: 1.0
serial: <superuser required> UEFI: American Megatrends v: 1.60
date: 11/30/2020
Battery:
ID-1: hidpp_battery_0 charge: 29% condition: N/A volts: 3.7 min: N/A
model: Logitech G502 LIGHTSPEED Wireless Gaming Mouse type: N/A
serial: <filter> status: discharging
CPU:
Info: model: Intel Core i5-10400F bits: 64 type: MT MCP arch: Comet Lake
gen: core 10 level: v3 note: check built: 2020 process: Intel 14nm family: 6
model-id: 0xA5 (165) stepping: 3 microcode: 0xF8
Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 1.5 MiB desc: 6x256 KiB
L3: 12 MiB desc: 1x12 MiB
Speed (MHz): avg: 3998 high: 4001 min/max: 800/4300 scaling:
driver: intel_pstate governor: powersave cores: 1: 4000 2: 4000 3: 4000
4: 4000 5: 4000 6: 3994 7: 4000 8: 4001 9: 3992 10: 4000 11: 4000 12: 3998
bogomips: 69597
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Vulnerabilities: <filter>
Graphics:
Device-1: NVIDIA TU106 [GeForce RTX 2060 Rev. A] driver: nvidia
v: 535.104.05 alternate: nouveau,nvidia_drm non-free: 535.xx+
status: current (as of 2023-08) arch: Turing code: TUxxx
process: TSMC 12nm FF built: 2018-22 pcie: gen: 3 speed: 8 GT/s lanes: 16
bus-ID: 01:00.0 chip-ID: 10de:1f08 class-ID: 0300
Display: x11 server: X.Org v: 21.1.8 with: Xwayland v: 23.2.0
compositor: kwin_x11 driver: X: loaded: modesetting,nvidia
alternate: fbdev,nouveau,nv,vesa gpu: nvidia display-ID: :0 screens: 1
Screen-1: 0 s-res: 4480x1440 s-dpi: 108 s-size: 1054x342mm (41.50x13.46")
s-diag: 1108mm (43.63")
Monitor-1: DP-0 pos: primary,top-right res: 2560x1440 dpi: 109
size: 597x336mm (23.5x13.23") diag: 685mm (26.97") modes: N/A
Monitor-2: DP-2 pos: bottom-l res: 1920x1080 dpi: 81
size: 600x340mm (23.62x13.39") diag: 690mm (27.15") modes: N/A
Monitor-3: None-1-1 size-res: N/A modes: N/A
API: OpenGL v: 4.6.0 NVIDIA 535.104.05 renderer: NVIDIA GeForce RTX
2060/PCIe/SSE2 direct-render: Yes
Audio:
Device-1: Intel Comet Lake PCH-V cAVS vendor: Micro-Star MSI
driver: snd_hda_intel v: kernel alternate: snd_soc_avs,snd_sof_pci_intel_cnl
bus-ID: 00:1f.3 chip-ID: 8086:a3f0 class-ID: 0403
Device-2: NVIDIA TU106 High Definition Audio driver: snd_hda_intel
v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16 bus-ID: 01:00.1
chip-ID: 10de:10f9 class-ID: 0403
Device-3: C-Media Blue Snowball driver: hid-generic,snd-usb-audio,usbhid
type: USB rev: 1.1 speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-2.2:6
chip-ID: 0d8c:0005 class-ID: 0300 serial: <filter>
API: ALSA v: k6.5.3-zen1-1-zen status: kernel-api with: aoss
type: oss-emulator tools: alsactl,alsamixer,amixer
Server-1: sndiod v: N/A status: off tools: aucat,midicat,sndioctl
Server-2: PipeWire v: 0.3.80 status: active with: 1: pipewire-pulse
status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: Micro-Star MSI driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s
lanes: 1 port: 3000 bus-ID: 03:00.0 chip-ID: 10ec:8168 class-ID: 0200
IF: enp3s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives:
Local Storage: total: 982.99 GiB used: 328.37 GiB (33.4%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: SanDisk
model: SSDPR-PX500-01T-80 size: 953.87 GiB block-size: physical: 512 B
logical: 512 B speed: 31.6 Gb/s lanes: 4 tech: SSD serial: <filter>
fw-rev: V2.1.3 temp: 54.9 C scheme: GPT
ID-2: /dev/sda maj-min: 8:0 model: Mass Storage Device size: 29.12 GiB
block-size: physical: 512 B logical: 512 B type: USB rev: 2.0 spd: 480 Mb/s
lanes: 1 mode: 2.0 tech: N/A serial: <filter> fw-rev: 1.00 scheme: MBR
SMART Message: Unknown USB bridge. Flash drive/Unsupported enclosure?
Partition:
ID-1: / raw-size: 936.45 GiB size: 936.45 GiB (100.00%)
used: 328.37 GiB (35.1%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
used: 576 KiB (0.2%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
ID-3: /home raw-size: 936.45 GiB size: 936.45 GiB (100.00%)
used: 328.37 GiB (35.1%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
ID-4: /var/log raw-size: 936.45 GiB size: 936.45 GiB (100.00%)
used: 328.37 GiB (35.1%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
ID-5: /var/tmp raw-size: 936.45 GiB size: 936.45 GiB (100.00%)
used: 328.37 GiB (35.1%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default) zswap: no
ID-1: swap-1 type: zram size: 15.56 GiB used: 2.67 GiB (17.2%)
priority: 100 comp: zstd avail: lzo,lzo-rle,lz4,lz4hc,842 max-streams: 12
dev: /dev/zram0
ID-2: swap-2 type: partition size: 17.11 GiB used: 0 KiB (0.0%)
priority: -2 dev: /dev/nvme0n1p3 maj-min: 259:3
Sensors:
System Temperatures: cpu: 49.0 C mobo: N/A gpu: nvidia temp: 68 C
Fan Speeds (rpm): N/A gpu: nvidia fan: 40%
Info:
Processes: 338 Uptime: 2h 51m wakeups: 12 Memory: total: 16 GiB
available: 15.56 GiB used: 9.15 GiB (58.8%) Init: systemd v: 254
default: graphical tool: systemctl Compilers: gcc: 13.2.1 clang: 16.0.6
Packages: 1939 pm: pacman pkgs: 1930 libs: 496 tools: octopi,pamac,paru
pm: flatpak pkgs: 9 Shell: fish v: 3.6.1 default: Bash v: 5.1.16
running-in: konsole inxi: 3.3.29
Garuda (2.6.16-1):
System install date:     2023-07-22
Last full system update: 2023-09-22
Is partially upgraded:   No
Relevant software:       snapper NetworkManager dracut nvidia-dkms
Windows dual boot:       No/Undetected
Failed units:            xhost_cups.service

I am being bothered with a very annoying issue.

When i try to record my screen with obs or share it with discord i experience a lot of lag in a game I’m playing. This occurs with every title i have tried(Apex legends, minecraft, Shadow of the Tomb Rider, Lol)

I dont know if this has anything to do with it but when i try to use pipewire to capture screen in obs it does not work(it does not allow me to select a screen to capture:)

XSHM works but it causes the lags, discord capture too. (My fps drops from ~120 to ~65) and the game feels really choppy.

Pipewire is a sound server AFAIK.

1 Like

So why there is an option in obs to capture video via pipewire?. And how to fix the performace of other options

AFAIK is AFAIK. So what’s your explanation? What has your online research found? What have you read and what else have you tried? What were the results?

1 Like

I have tried installing the NVFBC plugin for obs but later realized that i would need to downgrade obs to do that. It is really hard for me to research this since everything i find on the internet is related
to wayland.

OBS can do a lot. Maybe the PipeWire thing is just for doing an audio-only capture. I agree that “screen capture” does not make sense if it is only audio, but perhaps it is just a name inherited from the primary feature.

You should not expect to get your full FPS when you are running a full-blown screen capture utility, it’s never going to happen. If you need the maximum performance from your computer while you do the game, you are going to have to get an HDMI capture card. Most of the videos you see online where people stream their games will use a setup like this (not screen capture software running on the same device).

1 Like

You’re absolutely right about Pipewire’s video involvement. Here’s the (Arch) authority. I note the information is rather sparce, but the links aren’t. :slight_smile:

https://wiki.archlinux.org/title/PipeWire#Video

The first line is, “Although the software is not yet production-ready, it is safe to play around with.”

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.