Closed Bug 1660568 (theme-enable-perf) Opened 4 years ago Closed 15 days ago

investigate first-time theme enabling performance in about:welcome and decide what to do

Categories

(Firefox :: Messaging System, task, P2)

task

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: dmosedale, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: perf:frontend)

User Story

As a new user, I want the about:welcome experience to be fast and responsive, so that in my first exposures to Firefox, I get the feeling that Firefox itself is fast and responsive.

In bug 1643776, we landed a new theme (Alpenglow). Enabling this new theme during the about:welcome flow (and elsewhere, such as from the addons manager theme pane) can (usually?) causes a visual flash in the titlebar. We need to figure out how much of a problem we think this is. On my 2018 Mac, it's somewhat noticable (maybe .25s by eyeball). On a Linux VM I tested, it was fairly noticable, however, it wasn't so noticeable by comparison, since all of the themes rendered slowly enough that one visibly watches them render. On a Windows 7 VM I tested, all three were so slow that it didn't stand out much unless you knew exactly what you were looking forward.

Before multi-stage about:welcome, changing themes wasn't at the front and center of the first run experience; now it is.

So we need to decide how much of a problem we think this is and if we want to invest in it.

I'm guessing the first step here is to try it on a reference machine; perhaps making a video with timings. Punam has a working reference machine; I'm working to resurrect the one i've got.

I'm going to file a separate bug for what we do performance wise, if anything, about the difference between Alpenglow and the other themes in 81.

mconley, lgreco, do either of you know whether there's been theme enabling-performance work done in the past, and if so, how we could find out more and/or leverage those findings?

Summary: investigate general theme switching performance in about:welcome and decide what to do → investigate first-time theme enabling performance in about:welcome and decide what to do

Note that the biggest part of the performance here is the first time a given theme is enabled after startup. There may also just be a separate painting slowness issues (ie the colors visibly render from top to bottom on some slow VMs, at least).

Alias: theme-enable-perf
Priority: -- → P2

Much of the analysis in the alpenglow-perf bug is highly relevant to what happens next here.

Jim, what would you propose re if/when we work on theme performance further? If we as a team don't want to drive this, we might be able to find someone else who is interested in it...

Flags: needinfo?(jimthomas)
Whiteboard: [fxperf]

I captured a profile of switching the theme from about:welcome a few times on the 2018 reference hardware: https://share.firefox.dev/3jxGyI7

It doesn't seem fast (and I see the white flash) but doesn't seem significantly slower than the rest of the experience on this slow hardware.

Whiteboard: [fxperf] → [fxperf:p3]

Yes, let's wrap up our work to make sure the performance is at least on par with other experiences in slower environments and see who makes sense to own this type of performance work holistically. Maybe the addons team (cc Jorge)?

Flags: needinfo?(jimthomas)

Shane, is this something you can look into?

Flags: needinfo?(mixedpuppy)

(In reply to Jorge Villalobos [:jorgev] (he/him) from comment #5)

Shane, is this something you can look into?

Not in the near future.

Flags: needinfo?(mixedpuppy)

:florian, how does using alpenglow compare to selecing, perhaps dark mode, or some other builtin theme?

Flags: needinfo?(florian)

(In reply to Shane Caraveo (:mixedpuppy) from comment #7)

:florian, how does using alpenglow compare to selecing, perhaps dark mode, or some other builtin theme?

The profile in comment 3 shows several theme changes (default->alpenglow->dark->light->default->dark->alpenglow). You can see this on the screenshot track. I don't see a significant difference between the themes. The first theme change seems a bit slower than the others.

Flags: needinfo?(florian)
User Story: (updated)

We no longer offer theme selection as part of about:welcome, AIUI, so let's close this out?

Status: NEW → RESOLVED
Closed: 15 days ago
Resolution: --- → WORKSFORME
Keywords: perf:frontend
Whiteboard: [fxperf:p3]
You need to log in before you can comment on or make changes to this bug.