Open Bug 1584418 Opened 7 years ago Updated 1 year ago

High CPU usage on Firefox likely due to hidden loading spinners

Categories

(Core :: SVG, enhancement, P3)

71 Branch
Unspecified
Windows 10
enhancement

Tracking

()

Performance Impact low

People

(Reporter: karlcow, Unassigned)

References

(Depends on 1 open bug, )

Details

(Keywords: perf:resource-use)

Comment from the inital reporter

Just open the site and sit for a few minutes on the first page. Laptop's fan ramps up, CPU load is always at 30-50%. Microsoft Edge do not have this problem. Stable Firefox has the same problem (and webrender makes things only worse)

I created a profile which indeed shows a lot of activity and calls to the same functions
https://perfht.ml/2nHNVoV

There is an animation going on, but still this seems strange it creates that much CPU consumption.

mstange noticed that this page has off-screen throbbers which might be contributing to the CPU usage.

mstange also noticed that there's an SVG image with an animation on the page.

Hey hiro, this sounds like it's in your wheelhouse - where's a good place for this bug?

Flags: needinfo?(hikezoe.birchill)
Summary: High CPU usage on Firefox → High CPU usage on Firefox likely due to hidden loading spinners
Depends on: 1586065

Oh dear. The throbbers never go away:

img {
    background: url(/img/loader.svg) no-repeat center;
}

So all visible images have the throbber behind them, which is an SVG with a smil animation inside.

Whiteboard: [qf] → [qf:p3:resource]

We can probably add an additional check SMILCompositor::GetFirstFuncToAffectSandwich, presumably we need information that we didn't build any display items for the SVG frame (I have no other ideas right now).

Component: Graphics → SVG
Flags: needinfo?(hikezoe.birchill)
Priority: -- → P3
URL: https://anibel.net → https://anibel.net
Webcompat Priority: ? → ---
Webcompat Priority: --- → ?
Performance Impact: --- → P3
Whiteboard: [qf:p3:resource]
Webcompat Priority: ? → ---
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.