Open Bug 2033282 Opened 19 days ago Updated 6 hours ago

High CPU consumption on google search result expansion - WR sw_compositor recomposites the window due to offscreen animation

Categories

(Core :: Graphics: WebRender, defect)

defect

Tracking

()

ASSIGNED
Performance Impact medium
Webcompat Priority P3
Webcompat Score 1

People

(Reporter: bht237, Assigned: gw)

References

Details

User Story

user-impact-score:0

Attachments

(2 obsolete files)

On Windows 10 with 16GBytes of memory, I browse:

Google search

This is a normal google search that has an AI overview at the top of the results.
When the search results are displayed, then CPU consumption is normal, in the range from 0.2% to roughly 1%. However, when I click on the "Show more" button, then the result expands and CPU consumption jumps to 40% to 60% and my computer fans start making noise.

Component: General → Site Reports
Product: Firefox → Web Compatibility
Priority: -- → P1
Summary: Hi CPU consumption on google search result expansion → High CPU consumption on google search result expansion

Can you get a profile of this behavior? (Https://profiler.firefox.com)
Thanks!

Flags: needinfo?(bht237)
Flags: needinfo?(bht237)
User Story: (updated)
Webcompat Priority: --- → P3
Webcompat Score: --- → 1

I fixed up your links for now, but FYI the way you need to do markup for a link is like this: [link description](https://example.com)

Hi!

It's hard to tell from the current profile what's going on.

Is there any chance you can take a profile using the 'graphics' preset? (You can select it from the popup menu that you can open with the profiler button)

Thanks!

Flags: needinfo?(bht237)

I believe the composites are triggered by the gradient animation around the "Dive deeper in AI Mode" button. However, this button is offscreen. So I think the Firefox bug here is that, with the WebRender sw_compositor, we end up compositing even if the changes only affect clipped-out tiles.

Component: Site Reports → Graphics: WebRender
Flags: needinfo?(bht237)
Product: Web Compatibility → Core
Summary: High CPU consumption on google search result expansion → High CPU consumption on google search result expansion - WR sw_compositor recomposites the window due to offscreen animation
Version: Firefox 140 → Trunk

It seems to me that if the CSS animation with the rotated rectangles doesn't terminate when the button is scrolled out of the view (the way it is in the user's profile).

It seems to me that if the CSS animation with the rotated rectangles doesn't terminate when the button is scrolled out of the view (the way it is in the user's profile).

The Performance Impact Calculator has determined this bug's performance impact to be medium. If you'd like to request re-triage, you can reset the Performance Impact flag to "?" or needinfo the triage sheriff.

Platforms: [x] Windows [x] macOS [x] Linux
Websites affected: Major
Resource impact: Some
[x] Able to reproduce locally

Performance Impact: --- → medium
Severity: -- → S3

Glenn, can you take a look?

Flags: needinfo?(mozilla)
Duplicate of this bug: 2032772

Bug 2032772 is very similar, other than that it notes even with HW accel there is in fact still very high CPU churn too, just which is magnified even further in SW.

(In reply to Lee Salzman [:lsalzman] from comment #11)

Bug 2032772 is very similar, other than that it notes even with HW accel there is in fact still very high CPU churn too, just which is magnified even further in SW.

Closing my earlier-reported Bug 2032772 was actually a correct move. Update as of 21 Apr 2026, before Firefox 149.0.2 was updated to 150.0.0:

Perhaps some microupdate occurred in the meantime because the CPU hogging by Firefoxes' GPU process stopped while part of Google's AI Search page was still seen in the background. I haven't made any changes to my Firefox Settings or Extensions.

Not an issue in v.150.0.0, either.

Assignee: nobody → mozilla
Status: NEW → ASSIGNED

This seems to fix the high CPU usage for this scenario on swgl. I have been unable to test on CI as try server is just returning 502/503 at the moment, so will run a more thorough test later.

Flags: needinfo?(mozilla)
See Also: → 2030924
Duplicate of this bug: 2030924
Attachment #9572718 - Attachment is obsolete: true

I have the same issue, the only way I found to avoid it was with a uBlock filter to stop google's animation from triggering via:
||www.gstatic.com/searchbox-team/eclipse_wave_blurred_rects_f2dcf436ae9c2b05017fd88933a1b6ad.png$image

It seems to stem from the SVG https://www.gstatic.com/searchbox-team/eclipse_wave_blurred_rects_f2dcf436ae9c2b05017fd88933a1b6ad.png

<mask>
<linearGradient>
<clipPath>
<filter>
<feGaussianBlur stdDeviation="15">
<use>
<image class="Wrq4d">

Over about 5 seconds, Firefox profiling recorded:

x596 MozAfterPaint events
x600 DisplayList / WebRender display list updates
x598 paints of https://www.gstatic.com/searchbox-team/eclipse_wave_blurred_rects_f2dcf436ae9c2b05017fd88933a1b6ad.png
CSS animation named rotate-glow-rects
Target element: image ... class='Wrq4d' with animation property: rotate & compositor: true

Hope it helps

Attachment #9573261 - Attachment is obsolete: true
Priority: P1 → --

I have the same issue with AI overview when expanding show more. Firefox main pid goes from ~%5 to 500% CPU thread usage while staying on the same tab.
I'm on firefox-150.0-1.fc44.x86_64, Mesa 26.0.3-4, amd-gpu-firmware-20260410-1.fc44.noarch

Can confirm this issue on 150.0.1 under Linux. It's pretty bad as, if you leave a tab with this active, it can quickly kill your battery life.

This bug is SERIOUS and need to be fixed pronto and also fixed in ESR. If its not fixed, its just going to be another nail in the coffin for Firefox.

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

Attachment

General

Created:
Updated:
Size: