You are not logged in.

#1 2024-05-19 03:22:14

stygian_nymph
Member
Registered: 2024-05-19
Posts: 15

[SOLVED] Firefox laggy scrolling

Hey everyone!

I have installed Arch Linux last week and I'm liking it so far. But there is a problem with Firefox scrolling. The scrolling animation feels buggy (with both mouse scrolling and arrow keys).

What I tried:

  • I tried both enabling and disably smooth scrolling, but the laggy scrolling was not fixed

  • I tried running firefox using the following command:

    env MOZ_ENABLE_WAYLAND=1 firefox

    but there wasn't any difference between running it using that command and running it normally

  • I tried running firefox using the following command:

    env MOZ_ENABLE_WAYLAND=0 firefox

    and it ran Firefox as if there was no scaling but the scrolling issue was fixed.

System specs:

  • Intel Core i7-11800H

  • Nvidia RTX-3060 Laptop

  • 16 GB RAM

Software Specs:

  • installed Arch Linux using archlinux-2024.05.01-x86_64.iso

  • using Hyprland Tiling compositor with Wayland Protocol

  • installed Nvidia driver using nvidia-dkms 550.78-1 and nvidia-utils 550.78-1, and the nvidia card is detected after running nvidia-smi

  • Enabled 1.5x fractional scaling through hyprland.conf file

  • Already installed the latest updates through `Pacman -Syu` command

Firefox about:support info:

Compositing: WebRender

Window Protocol: wayland

Desktop Environment: hyprland

Target Frame Rate: 60

WebGPU Default Adapter:
{
  "navigator.gpu": null
}

WebGPU Fallback Adapter:
{
  "navigator.gpu": null
}

GPU1
=====
Active: Yes
Description: Mesa Intel(R) UHD Graphics (TGL GT1)

GPU2
=====
Active: No

I don't know if this is relevant or not, but I installed Google Chrome using yay and enabled wayland using Preferred Ozone platform flag and the scrolling in it is smooth.

Any feedback is highly appreciated.

Last edited by stygian_nymph (2024-06-12 08:50:33)

Offline

#2 2024-05-19 10:59:32

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,979

Re: [SOLVED] Firefox laggy scrolling

installed Nvidia driver using nvidia-dkms 550.78-1 and nvidia-utils 550.78-1, and the nvidia card is detected after running nvidia-smi

But this is a hybrid system and you're running on the intel chip (which is fine)

The scrolling animation feels buggy … both enabling and disably smooth scrolling, but the laggy scrolling was not fixed

Can you please elaborate on the symptom?
Disabling "smooth scrolling" should get you no animation at all, you're jumping like 3 lines or so.
Is it only scrolling?
How does eg. https://www.testufo.com/framerates#coun … ne&pps=240 behave?

Offline

#3 2024-05-19 15:30:46

stygian_nymph
Member
Registered: 2024-05-19
Posts: 15

Re: [SOLVED] Firefox laggy scrolling

seth wrote:

Can you please elaborate on the symptom?
Disabling "smooth scrolling" should get you no animation at all, you're jumping like 3 lines or so.

When I scroll through web pages in Firefox, the movement is not smooth. Instead, it feels choppy or jerky and the page seems to jump in steps rather than moving fluidly.
When "smooth scrolling" is enabled, the symptons are lessened somewhat but still appears (like it is part smooth part choppy).

seth wrote:

Is it only scrolling?
How does eg. https://www.testufo.com/framerates#coun … ne&pps=240 behave?

Yes, The problem is only appearent when scrolling. The website shows me a UFO moving smoothly from left to right with the following:

  • Frame Rate: 60 fps

  • Refresh Rate: -Hz

  • Pixels Per Frame: 4

  • Pixels Per Frame: 240

Offline

#4 2024-05-19 15:41:26

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,979

Re: [SOLVED] Firefox laggy scrolling

w/o "smooth scrolling" that's exactly what you can expect - you click a few lines for- or backwards, so focus on the setup w/ smooth scrolling enabled:

Enabled 1.5x fractional scaling through hyprland.conf file

Same behavior w/o any scaling?

Offline

#5 2024-05-19 16:03:18

stygian_nymph
Member
Registered: 2024-05-19
Posts: 15

Re: [SOLVED] Firefox laggy scrolling

Same behavior w/o any scaling?.

When removing the fractional scaling and returning it to 1x, the behavior becomes different for some websites. For example, trying to scrolling through this forum's posts have become smoother with no visible chopping effects.
Most of the websites I tested (Google search, some XenForo-based forums) still have this weird choppy scrolling.

Offline

#6 2024-05-19 16:54:34

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,979

Re: [SOLVED] Firefox laggy scrolling

Does your CPU (or at least one core) max out when scrolling?
Does it only involve showing new content or also scrolling backwards?

Offline

#7 2024-05-19 17:13:51

stygian_nymph
Member
Registered: 2024-05-19
Posts: 15

Re: [SOLVED] Firefox laggy scrolling

Does your CPU (or at least one core) max out when scrolling?

No, the usage of all the cores fluctuates around 2%-6%.

Does it only involve showing new content or also scrolling backwards?

the same behavior occurs when scrolling in both directions.

Also, I also discovered that the scrolling is much smoother when Firefox is not the the only window in the workspace (i.e not in fullscreen mode).

Offline

#8 2024-06-12 08:49:57

stygian_nymph
Member
Registered: 2024-05-19
Posts: 15

Re: [SOLVED] Firefox laggy scrolling

After a long search and multiple fresh installation of Arch Linux, I discovered that the problem is in the Nvidia graphics card. The problem disappeared after blacklisting Nvidia modules and relying on the Intel iGPU.

I tried to use the Nvidia GPU today after installing the latest driver update (nvidia-dkms 550.90.07-1) and the problem disappeared.

Offline

Board footer

Powered by FluxBB