Other Firefox Windows lag while running a youtube video

While running a youtube video in one window on one monitor on firefox and then creating a new tab in a new window I get very laggy/slow scrolling. Its almost as if the video is hogging all of the resources allocated to firefox. The video plays fine, no issues. When I close the video and scroll on the other windows I have no issues.

Now I do have a nvidia card which I understand can/will cause issues. Not sure if it is the issue however. I have followed what seems to be the default solution of this github

but either I didn’t do it correctly or it just doesn’t solve the issue.

I don’t have this issue in chromium so my current solution is to just use chromium as my youtube player, but this isn’t ideal and would like to consolidate to one browser (preferably firefox). I am hoping the solution is not “buy amd” or “just use chromium” unless this is a problem everyone has with firefox on linux. I don’t recall ever having this issue on windows.

Here are some (maybe?) helpful commands:

vainfo
Trying display: wayland
Trying display: x11
vainfo: VA-API version: 1.19 (libva 2.18.2)
vainfo: Driver version: VA-API NVDEC driver [egl backend]
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileHEVCMain               : VAEntrypointVLD
      VAProfileVP8Version0_3          : VAEntrypointVLD
      VAProfileVP9Profile0            : VAEntrypointVLD
      VAProfileHEVCMain10             : VAEntrypointVLD
      VAProfileHEVCMain12             : VAEntrypointVLD
      VAProfileVP9Profile2            : VAEntrypointVLD
nvidia-smi                                                                                                                                  ✔ 
Wed Aug  2 21:10:48 2023       
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.86.05              Driver Version: 535.86.05    CUDA Version: 12.2     |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |         Memory-Usage | GPU-Util  Compute M. |
|                                         |                      |               MIG M. |
|=========================================+======================+======================|
|   0  NVIDIA GeForce RTX 2080 ...    Off | 00000000:2D:00.0  On |                  N/A |
| 42%   38C    P0              51W / 250W |   1267MiB /  8192MiB |      2%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+
                                                                                         
+---------------------------------------------------------------------------------------+
| Processes:                                                                            |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
|        ID   ID                                                             Usage      |
|=======================================================================================|
|    0   N/A  N/A       582      G   /usr/lib/Xorg                               534MiB |
|    0   N/A  N/A       684      G   /usr/bin/ksmserver                            2MiB |
|    0   N/A  N/A       687      G   /usr/bin/kded5                                2MiB |
|    0   N/A  N/A       688      G   /usr/bin/kwin_x11                           147MiB |
|    0   N/A  N/A       718      G   /usr/bin/plasmashell                         66MiB |
|    0   N/A  N/A       730      G   ...b/polkit-kde-authentication-agent-1        2MiB |
|    0   N/A  N/A       732      G   /usr/lib/xdg-desktop-portal-kde               2MiB |
|    0   N/A  N/A       833      G   /usr/bin/msm_kde_notifier                     2MiB |
|    0   N/A  N/A       835      G   /usr/lib/kdeconnectd                          2MiB |
|    0   N/A  N/A       847      G   /usr/bin/kaccess                              2MiB |
|    0   N/A  N/A       849      G   /usr/bin/pamac-tray-plasma                   56MiB |
|    0   N/A  N/A       952      G   ...local/share/Steam/ubuntu12_32/steam        3MiB |
|    0   N/A  N/A      1080      G   ...,WinRetrieveSuggestionsOnlyOnDemand       33MiB |
|    0   N/A  N/A      1224      G   ...re/Steam/ubuntu12_64/steamwebhelper        7MiB |
|    0   N/A  N/A      1380      G   /usr/bin/kwalletd5                            2MiB |
|    0   N/A  N/A      4620      G   /usr/bin/pamac-manager                       26MiB |
|    0   N/A  N/A      5445      G   ...7299190,15111219640881526391,262144       96MiB |
|    0   N/A  N/A      5560      G   ...bin/plasma-browser-integration-host        2MiB |
|    0   N/A  N/A     99483      G   /usr/lib/baloorunner                          2MiB |
|    0   N/A  N/A    104666      G   /usr/bin/dolphin                              2MiB |
|    0   N/A  N/A    107052      G   /usr/lib/firefox/firefox                    242MiB |
|    0   N/A  N/A    107497      G   /usr/bin/konsole                              2MiB |
+---------------------------------------------------------------------------------------+

uname -a                                                                                                                                    ✔ 
Linux XXXXXX-pc 6.4.6-1-MANJARO #1 SMP PREEMPT_DYNAMIC x86_64 GNU/Linux

How did you do that? Manually? Or did you install the package?

Also did you set the follow up configurations?

Please provide:

inxi -Fazy

I installed the package.

Yes

System:
  Kernel: 6.4.6-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 13.1.1
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.4-x86_64
    root=UUID=3e6e4c0f-26d2-4b14-af4a-9bee693e02f7 rw nvidia-drm.modeset=1
    quiet splash udev.log_priority=3
  Desktop: KDE Plasma v: 5.27.6 tk: Qt v: 5.15.10 wm: kwin_x11 vt: 2 dm: SDDM
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Desktop Mobo: Micro-Star model: X570-A PRO (MS-7C37) v: 3.0
    serial: <superuser required> UEFI: American Megatrends LLC. v: H.H0
    date: 05/19/2022
CPU:
  Info: model: AMD Ryzen 7 5800X3D bits: 64 type: MT MCP arch: Zen 3+ gen: 4
    level: v3 note: check built: 2022 process: TSMC n6 (7nm) family: 0x19 (25)
    model-id: 0x21 (33) stepping: 2 microcode: 0xA20120A
  Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
    L1: 512 KiB desc: d-8x32 KiB; i-8x32 KiB L2: 4 MiB desc: 8x512 KiB L3: 96 MiB
    desc: 1x96 MiB
  Speed (MHz): avg: 2567 high: 3400 min/max: 2200/4549 boost: enabled
    scaling: driver: acpi-cpufreq governor: schedutil cores: 1: 2200 2: 2879
    3: 2200 4: 2879 5: 2800 6: 2200 7: 2200 8: 2879 9: 2880 10: 2200 11: 3400
    12: 2200 13: 2878 14: 2200 15: 2200 16: 2879 bogomips: 108840
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm

Graphics:
  Device-1: NVIDIA TU104 [GeForce RTX 2080 SUPER] vendor: ASUSTeK
    driver: nvidia v: 535.86.05 alternate: nouveau,nvidia_drm non-free: 535.xx+
    status: current (as of 2023-07) arch: Turing code: TUxxx
    process: TSMC 12nm FF built: 2018-22 pcie: gen: 3 speed: 8 GT/s lanes: 16
    ports: active: none off: DP-2,DP-3 empty: DP-1,HDMI-A-1 bus-ID: 2d:00.0
    chip-ID: 10de:1e81 class-ID: 0300
  Display: x11 server: X.Org v: 21.1.8 with: Xwayland v: 23.1.2
    compositor: kwin_x11 driver: X: loaded: nvidia gpu: nvidia,nvidia-nvswitch
    display-ID: :0 screens: 1
  Screen-1: 0 s-res: 5120x1440 s-dpi: 93 s-size: 1398x393mm (55.04x15.47")
    s-diag: 1452mm (57.17")
  Monitor-1: DP-2 note: disabled pos: primary,right
    model: LG (GoldStar) HDR QHD serial: <filter> built: 2019 res: 2560x1440
    hz: 144 dpi: 93 gamma: 1.2 size: 697x392mm (27.44x15.43")
    diag: 800mm (31.5") ratio: 16:9 modes: max: 2560x1440 min: 640x480
  Monitor-2: DP-3 mapped: DP-4 note: disabled pos: left
    model: LG (GoldStar) Ultra HD serial: <filter> built: 2017 res: 2560x1440
    hz: 60 dpi: 108 gamma: 1.2 size: 600x340mm (23.62x13.39")
    diag: 690mm (27.2") ratio: 16:9 modes: max: 3840x2160 min: 640x480
  API: OpenGL v: 4.6.0 NVIDIA 535.86.05 renderer: NVIDIA GeForce RTX 2080
    SUPER/PCIe/SSE2 direct-render: Yes

It appears as though
“Force Full Composition Pipeline”
In nvidia server settings fixed the issue.

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