Open Bug 710359 Opened 8 years ago Updated 3 years ago

Implement benchmark to measure jank caused by background tabs

Categories

(Core :: General, defect)

defect
Not set

Tracking

()

People

(Reporter: bjacob, Unassigned)

References

(Depends on 2 open bugs, Blocks 1 open bug)

Details

(Whiteboard: [Snappy:P2][games:p?])

This is not a specific complaint about GMail or any other site :-) I'm filing this bug to have something to link to in https://wiki.mozilla.org/Platform/AreWeFunYet .

The problem I'm discussing here is that playing a game or generally an animation is a lot less smooth if there is another JS-intensive page open in another tab. This really sucks and undermines in particular our gaming story. This should have been solved by electrolysis, except it's currently on hold.

Steps to reproduce:
1) Open http://webglsamples.googlecode.com/hg/aquarium/aquarium.html
2) wait a bit until it's fully loaded. Note the FPS count and how stable it is (e.g. here I get 30 FPS, quite stable)
3) Open GMail in a new tab, go back to the aquarium tab
4) wait a bit until GMail is fully loaded. Note the FPS count and how (un)stable it is now (here it's oscillating, sometimes 30 FPS, sometimes more like 20 FPS).

We want Firefox to become a serious platform for games. But, gamers will also want to keep their GMail pinned tabs on the side. So, big deal.
Component: Canvas: WebGL → General
QA Contact: canvas.webgl → general
What happens if you try one of the incremental GC builds from the larch project branch?
Depends on: 397709
Depends on: 712478
Also bug 715592, that depends on bug 712478 too, could be really useful for games.
I've tried the Larch builds and indeed the animations do feel smoother there. Maybe what we need to most at this point is a benchmark.
(In reply to Benoit Jacob [:bjacob] from comment #3)
> I've tried the Larch builds and indeed the animations do feel smoother
> there. Maybe what we need to most at this point is a benchmark.

I agree.
Summary: Animations/games lose smoothness just from having GMail open in another tab → Implement benchmark to measure jank caused by background tabs
Whiteboard: [Snappy:P2]
Depends on: 712731
Whiteboard: [Snappy:P2] → [Snappy:P2][games:p2]
Whiteboard: [Snappy:P2][games:p2] → [Snappy:P2][games:p?]
You need to log in before you can comment on or make changes to this bug.