Open Bug 2054275 Opened 14 days ago Updated 2 days ago

Occasional stutter scrolling since 152.0.5?

Categories

(Core :: Graphics, defect)

Firefox 152
defect

Tracking

()

UNCONFIRMED

People

(Reporter: hello, Unassigned, NeedInfo)

Details

Attachments

(1 file)

Attached file test.txt

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:152.0) Gecko/20100101 Firefox/152.0

Steps to reproduce:

What did you do? (steps to reproduce)

1.Open Firefox 152.0.5 on Windows 10.
2,Visit the following Reddit thread:
https://www.reddit.com/r/uBlockOrigin/comments/1pwha78/element_picker_quick_filter_creation_browsers/
3.Continuously scroll up and down through the page for several seconds,
4.Repeat if necessary. The issue is intermittent but occurs frequently on this page. I have also observed it on other websites. especially around posts containing embedded media like the thread linked

Actual results:

What happened? (actual results)

Scrolling intermittently stutters. The page briefly hitches, jumps, or appears to overshoot while scrolling. The issue seems to occur more frequently on pages containing embedded media (such as videos), like the Reddit thread linked in the reproduction steps, although I have also observed it on other websites that have similar imbedded media (multiple videos playing at the same time)

The issue occurs with both the mouse wheel and Firefox's auto-scroll, so it does not appear to be related to the mouse wheel hardware.

The problem does not occur in Microsoft Edge on the same system.

I have already tried:

Refresh Firefox (new profile)

Reinstall Firefox

Disable/uninstall uBlock Origin

Update/change NVIDIA graphics drivers

None of these changed the behavior.

Expected results:

What should have happened? (expected results)

Scrolling should remain consistently smooth without intermittent hitches, jumps, or overshooting, matching the behavior observed in Microsoft Edge on the same hardware.

I have attached about:support text and if specific logging is required, please let me know which logging preset modules you would like me to use, and I will provide the requested logs.

The Bugbug bot thinks this bug should belong to the 'Core::Graphics' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Graphics
Product: Firefox → Core

https://share.firefox.dev/3SNFrLt

Performance profile attached

I used this thread as an example and auto scroll up and down all through out the logging session.
https://www.reddit.com/r/uBlockOrigin/comments/1pwha78/element_picker_quick_filter_creation_browsers/

Glenn, do you see anything in the profile here that looks like it might explain the stutter WebRender-wise? I am not seeing anything in particular that might explain it. The commenter mentions embedded media like video, so perhaps it could be related to variation in frame rendering times from compositing such?

Severity: -- → S3
Flags: needinfo?(mozilla)

I can see a few long composite times in the render thread, ~50-80ms, which is probably what you're observing, especially when running at 144 Hz. Could you try change gfx.webrender.layer-compositor in about:config to false, restart the browser and see if that makes any difference?

Flags: needinfo?(mozilla) → needinfo?(wiseolddude)

(In reply to Glenn Watson [:gw] from comment #4)

I can see a few long composite times in the render thread, ~50-80ms, which is probably what you're observing, especially when running at 144 Hz. Could you try change gfx.webrender.layer-compositor in about:config to false, restart the browser and see if that makes any difference?

Hello,

I tried setting gfx.webrender.layer-compositor to false in about:config, but it made no difference.

While scrolling, videos autoplay, which uses the video decoder, so I wondered if that might be the issue.

What did make a noticeable difference was setting media.hardware-video-decoding.enabled to false. (I know this basically turns off hardware acceleration for videos but not UI)

Scrolling is now much smoother. It's not 100% smooth, but the improvement is very significant.

I'm not sure what's wrong with hardware acceleration. I've been encountering occasional odd quirks that consistently disappear when I disable hardware acceleration, and they usually seem to involve video playback. There was another issue I didn't mention here because I created a separate thread about it, and disabling hardware acceleration resolved that one as well.

Even tried refreshing the profile just incase of corruption or changing gpu driver.

Flags: needinfo?(wiseolddude) → needinfo?(mozilla)

Adding on a couple of people who know more about hardware video decoding, it does seem specifically related to that.

Flags: needinfo?(sotaro.ikeda.g)
Flags: needinfo?(mozilla)
Flags: needinfo?(alwu)

(In reply to Glenn Watson [:gw] from comment #6)

Adding on a couple of people who know more about hardware video decoding, it does seem specifically related to that.

Here is another profiler log from a site I visit that also exhibits scroll hitching, although not as severely. In this case, the site does not have any media playing in the background.(this site is a manhua site so there's not even media playing in the background)

For this test, I reset gfx.webrender.layer-compositor to its default value to simulate Firefox's default configuration.
https://share.firefox.dev/4pmQAyV

In this case, setting media.hardware-video-decoding.enabled to false only helps slightly.The hitch as I scroll up seems only lessened not completely removed. Scrolling is still not as smooth as in Edge, or as smooth as Firefox was for me 1–2 weeks ago.

For comparison, scrolling on Edge is completely smooth in both directions as of this moment on both sites.

To reproduce the behavior, I pressed the middle mouse button and used auto-scroll by moving the mouse up and down, letting the page scroll on its own. Every time I reached the upper part of the page, I observed a small hitch.

I also notice that the scroll hitching occurs at the same time as the stutter I described in the main report. I suspect the two issues are closely related.

So far:
Issue is not older then 2 weeks
Edge scrolling is smooth as butter using the same sites
Having media playing in the background tends to make the scrolling stutter worst but it can also sometimes happen in sites that don't show media when scrolling.

Flags: needinfo?(mozilla)

To further clarify maybe I can help pinpointing the issue.

From what I can remember this issue happened between the current firefox 152.0.6 and 152.0.4 .I don't know if maybe something was sneaked in inbetween these 2 updates.Which add ups to everything being fine around 2 weeks ago scrolling wise.

If you're able to reproduce reliably, running mozregression (https://mozilla.github.io/mozregression/) and reporting the result here would be very helpful - it can often track the regression down to a specific commit.

Flags: needinfo?(mozilla)

(In reply to Glenn Watson [:gw] from comment #9)

If you're able to reproduce reliably, running mozregression (https://mozilla.github.io/mozregression/) and reporting the result here would be very helpful - it can often track the regression down to a specific commit.

Question,

I never used mozregression.

If I download it and run it from date A to date B that wont effect my regular firefox install right?don't want to lose booksmarks/history of my current firefox profile.

Flags: needinfo?(mozilla)

(In reply to Glenn Watson [:gw] from comment #9)

If you're able to reproduce reliably, running mozregression (https://mozilla.github.io/mozregression/) and reporting the result here would be very helpful - it can often track the regression down to a specific commit.

Ok Glenn,

I managed to figure out how to use

chose regression
left every other settings default
Choose from the 30th of june to now

https://www.reddit.com/r/uBlockOrigin/comments/1pwha78/element_picker_quick_filter_creation_browsers/
Test scroll.Held middle mouse button for auto scroll and went up and down.There was a first stutter with the occasional frame pacing issue.
Felt marginally better then now but Edge is just smooth

2nd test site https://asurascans.com/
Test scroll.Held middle mouse button to auto scroll up.As the scroll goes down it's smooth.As the scroll goes up again near the end there's a minor hitch every time.It can be subtle.
Again,Edge is unnefected.No such stutter with any scrolling movement.

Now I'm a bit confused.I was sure I wasn't effected by this issue 2+ weeks ago.
Question now is why is it happening on firefox and not chrome?
Mozzregression gives you a clean new profile with nothing so its not even a matter of me having a wonky profile or a driver issue or else edge would be effected aswell.

Question now is why is it happening on firefox and not chrome?
Sorry I meant Edge.I used edge to compare.

The output of mozregression, if it works, should give you a link you can paste here with a range of possible changes that could have caused it, which we can then isolate further.

Flags: needinfo?(mozilla)

(In reply to Glenn Watson [:gw] from comment #13)

The output of mozregression, if it works, should give you a link you can paste here with a range of possible changes that could have caused it, which we can then isolate further.

Hello Glenn,

I honestly have no idea what to say.

Oddly enough, I'm noticing erratic scrolling performance on the site examples I mentioned, even as far back as June 16, 2026. I'm sure this wasn't an issue that far back. I was convinced it was fine even two weeks ago.

I dunno why, but on Firefox the scrolling performance always feels random. Sometimes sites like the ones I mentioned have issues when media is playing, and sometimes they don't. Even the manhua site can have the issue despite not having any media. At the same time, some sites are completely fine.

For example, Today I opened the problem page:
https://www.reddit.com/r/uBlockOrigin/comments/1pwha78/element_picker_quick_filter_creation_browsers/

...then switch to another tab, switch back, and scroll up and down, it's suddenly fine with no stuttering or hitching. Then, for no apparent reason, the scrolling becomes hitchy again.Rinse and repeat. I can't find any pattern or consistent way to reproduce it.

Either the issue was always there and I only just noticed it, and it's one of those things that once you see it, you can't unsee it, or I've simply run out of ideas.

All I know is that on Edge the scrolling performance is consistently smoother.There are no problem sites that give me erratic scrolling performance. Maybe these sites are just better optimized for Chrome/Edge?May be the act of scrolling itself is somehow more optimized?

Flags: needinfo?(mozilla)

The only consistent microstutter I can reproduce on Firefox, but not on Edge (where scrolling is consistently smooth), is when scrolling up on this site: https://asurascans.com/
I can even reproduce it as far back as the June 16 build in mozregression.
Again, I'm out of ideas. Either this behavior was always there and I only recently started noticing it on Firefox, or something else changed around the time I made this thread.

Hello, could you help to use about:logging to capture a media profile? (instruction here) Thanks!

Flags: needinfo?(alwu) → needinfo?(wiseolddude)

(In reply to Alastor Wu [:alwu] from comment #16)

Hello, could you help to use about:logging to capture a media profile? (instruction here) Thanks!

https://share.firefox.dev/4f3Yiuk
First log for: https://asurascans.com/

Micro stutter every time I kept scrolling up at a certain point.Scrolling down no issue.This one can be subtle and sometimes not subtle.
Not present on edge at all.It's like the upper part of the site has something that is causing the micro hitch to happen.

https://share.firefox.dev/4ps18wz
Second log for scrolling up and down here:
https://www.reddit.com/r/uBlockOrigin/comments/1pwha78/element_picker_quick_filter_creation_browsers/

This one is an odd one.Sometimes its fine.Then I swap tab back and forth and its lagging scrolling or the other way around.As I load the page I start scrolling up and down and it starts with a hitch and then it smooths out somewhat but there's still framepacing issues when scrolling up and down with the occasional micro hitch.Again,sometimes it just works and is smooth until I look in another tab for a second and go back to the offending tab.
Again,this is not present on edge.

Could it be something up with hardware acceleration?I know hardware acceleration is also used for stuff like scrolling and not just playing media.Maybe it's the difference between how firefox uses hardware acceleration and edge?

Flags: needinfo?(wiseolddude)
Flags: needinfo?(mozilla)
Flags: needinfo?(alwu)

https://share.firefox.dev/4ps18wz
Second log for scrolling up and down here:

Ignore this log please.I think I made a mistake and logged networking on this one
Here is the correct log https://share.firefox.dev/3THcAsk logging media.
All I said about this one still stands.Swapping tabs then back to the offending site then scrolling seems to trigger an initial hitch when scrolling and alot of the times the frame pacing is impacted aswell with occasional bouts of smooth scrolling out of nowhere.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: