Responsiveness & Jank Thread

Discussion about official Mozilla Firefox builds
Post Reply
Ver Greeneyes
Posts: 1030
Joined: June 28th, 2008, 4:57 am

Re: Responsiveness & Jank Thread

Post by Ver Greeneyes »

avada wrote:(Too bad they don't automatically uplift HTML5/MSE improvements)
They might as well be - all the big fixes are being uplifted all the way to 36 with pre-approval (though they do still put up the uplift requests unless a bug is particularly critical).
User avatar
Omega X
Posts: 8225
Joined: October 18th, 2007, 2:38 pm
Location: A Parallel Dimension...

Re: Responsiveness & Jank Thread

Post by Omega X »

If MSE is shipping with Fx36 then they'll uplift unrisky fixes.
Ver Greeneyes
Posts: 1030
Joined: June 28th, 2008, 4:57 am

Re: Responsiveness & Jank Thread

Post by Ver Greeneyes »

I don't know if it's just my imagination, but today's Nightly feels faster again.

Edit: Foreground tabs do, at least. Session Restore still feels really slow on my pinned tabs.

Edit2: Nevermind, still extremely slow on some websites.
avada
Posts: 1934
Joined: February 10th, 2008, 6:30 am
Location: Hungary

Re: Responsiveness & Jank Thread

Post by avada »

At least they fixed the throbber getting stuck all the time. (and the disappeared history/bookmarks.)
Ver Greeneyes
Posts: 1030
Joined: June 28th, 2008, 4:57 am

Re: Responsiveness & Jank Thread

Post by Ver Greeneyes »

Yeah, that was related to the performance issues I was seeing. Things are much better now.
Ver Greeneyes
Posts: 1030
Joined: June 28th, 2008, 4:57 am

Re: Responsiveness & Jank Thread

Post by Ver Greeneyes »

Nicholas Nethercote of Memshrink fame just landed a change that significantly reduces the amount of common font-related allocations in bug 1100738. In his own measurements, this almost tripled the loading speed of one pdf using pdfjs, and showed large gains on others. It also caused a ~12.5% increase in the score of CanvasMark, at least the version they run in automation.
User avatar
Omega X
Posts: 8225
Joined: October 18th, 2007, 2:38 pm
Location: A Parallel Dimension...

Re: Responsiveness & Jank Thread

Post by Omega X »

Hopefully that translates to common websites as well.
Ver Greeneyes
Posts: 1030
Joined: June 28th, 2008, 4:57 am

Re: Responsiveness & Jank Thread

Post by Ver Greeneyes »

This should interest some of you: Project silk can now be tested on desktop Firefox on Windows and OSX. Project silk aims to increase animation smoothness (smooth as silk) by synchronizing composition with VSync. To enable the new mode, go into about:config and set gfx.vsync.compositor, gfx.vsync.hw-vsync.enabled and gfx.vsync.refreshdriver to true (then restart the browser).

Note that this does not yet work on Linux, so don't try it lest you get stuck in a crash loop! Also, the implementation on Windows depends on the DWM (Windows' compositor) being available and enabled. The browser should still work just fine with it disabled, or on Windows XP where it isn't available, but it won't be synchronized with VSync.

Also: be careful with this if you're likely to switch to an older version of Nightly, since setting these preferences (which were first introduced for B2G) will probably cause older builds to crash. The VSync source for Windows has been available for about 2 or 3 days now.

For more information, see also the project wiki page and the meta bug's dependencies.
User avatar
Zlip792
Posts: 1340
Joined: May 7th, 2011, 1:47 pm
Location: Pakistan

Re: Responsiveness & Jank Thread

Post by Zlip792 »

Ver Greeneyes wrote:This should interest some of you: Project silk can now be tested on desktop Firefox on Windows and OSX. Project silk aims to increase animation smoothness (smooth as silk) by synchronizing composition with VSync. To enable the new mode, go into about:config and set gfx.vsync.compositor, gfx.vsync.hw-vsync.enabled and gfx.vsync.refreshdriver to true (then restart the browser).

Note that this does not yet work on Linux, so don't try it lest you get stuck in a crash loop! Also, the implementation on Windows depends on the DWM (Windows' compositor) being available and enabled. The browser should still work just fine with it disabled, or on Windows XP where it isn't available, but it won't be synchronized with VSync.

Also: be careful with this if you're likely to switch to an older version of Nightly, since setting these preferences (which were first introduced for B2G) will probably cause older builds to crash. The VSync source for Windows has been available for about 2 or 3 days now.

For more information, see also the project wiki page and the meta bug's dependencies.


If someone wants to benchmark - http://www.vsynctester.com/
winapp2
Posts: 1405
Joined: March 31st, 2013, 10:31 pm

Re: Responsiveness & Jank Thread

Post by winapp2 »

Zlip792 wrote:
Ver Greeneyes wrote:This should interest some of you: Project silk can now be tested on desktop Firefox on Windows and OSX. Project silk aims to increase animation smoothness (smooth as silk) by synchronizing composition with VSync. To enable the new mode, go into about:config and set gfx.vsync.compositor, gfx.vsync.hw-vsync.enabled and gfx.vsync.refreshdriver to true (then restart the browser).

Note that this does not yet work on Linux, so don't try it lest you get stuck in a crash loop! Also, the implementation on Windows depends on the DWM (Windows' compositor) being available and enabled. The browser should still work just fine with it disabled, or on Windows XP where it isn't available, but it won't be synchronized with VSync.

Also: be careful with this if you're likely to switch to an older version of Nightly, since setting these preferences (which were first introduced for B2G) will probably cause older builds to crash. The VSync source for Windows has been available for about 2 or 3 days now.

For more information, see also the project wiki page and the meta bug's dependencies.


If someone wants to benchmark - http://www.vsynctester.com/


Only hits 130fps without these options changed, hits 144fps with them on though:)
BenYeeHua
Posts: 874
Joined: July 11th, 2011, 2:57 am

Re: Responsiveness & Jank Thread

Post by BenYeeHua »

winapp2 wrote:Only hits 130fps without these options changed, hits 144fps with them on though:)

I think the ways to benchmark is see did it will showing 2 frame in the same v-sync or not, but ya, no matter I enable it or not, a GC will kill the frame. :wink:
http://www.vsynctester.com/manual.html
User avatar
itisomegakai
Posts: 358
Joined: February 13th, 2014, 11:52 am

Re: Responsiveness & Jank Thread

Post by itisomegakai »

winapp2 wrote:
Zlip792 wrote:
Ver Greeneyes wrote:This should interest some of you: Project silk can now be tested on desktop Firefox on Windows and OSX. Project silk aims to increase animation smoothness (smooth as silk) by synchronizing composition with VSync. To enable the new mode, go into about:config and set gfx.vsync.compositor, gfx.vsync.hw-vsync.enabled and gfx.vsync.refreshdriver to true (then restart the browser).

Note that this does not yet work on Linux, so don't try it lest you get stuck in a crash loop! Also, the implementation on Windows depends on the DWM (Windows' compositor) being available and enabled. The browser should still work just fine with it disabled, or on Windows XP where it isn't available, but it won't be synchronized with VSync.

Also: be careful with this if you're likely to switch to an older version of Nightly, since setting these preferences (which were first introduced for B2G) will probably cause older builds to crash. The VSync source for Windows has been available for about 2 or 3 days now.

For more information, see also the project wiki page and the meta bug's dependencies.


If someone wants to benchmark - http://www.vsynctester.com/


Only hits 130fps without these options changed, hits 144fps with them on though:)



Amazing but would like to see how it performs on older/Low end hardware like P4 or E-series APU(which are mainly used for web surfing/offices etc).
Or Celeron based CPU's used in most offices.
User avatar
Grantius
Posts: 1545
Joined: June 28th, 2011, 4:14 pm
Contact:

Re: Responsiveness & Jank Thread

Post by Grantius »

Ver Greeneyes wrote:This should interest some of you: Project silk can now be tested on desktop Firefox on Windows and OSX. Project silk aims to increase animation smoothness (smooth as silk) by synchronizing composition with VSync. To enable the new mode, go into about:config and set gfx.vsync.compositor, gfx.vsync.hw-vsync.enabled and gfx.vsync.refreshdriver to true (then restart the browser).

Note that this does not yet work on Linux, so don't try it lest you get stuck in a crash loop! Also, the implementation on Windows depends on the DWM (Windows' compositor) being available and enabled. The browser should still work just fine with it disabled, or on Windows XP where it isn't available, but it won't be synchronized with VSync.

Also: be careful with this if you're likely to switch to an older version of Nightly, since setting these preferences (which were first introduced for B2G) will probably cause older builds to crash. The VSync source for Windows has been available for about 2 or 3 days now.

For more information, see also the project wiki page and the meta bug's dependencies.



Thanks for this, works well. I assume that means it doesn't work for Android?
Micro gaming box: AMD A10-7800 APU, 8gb RAM M350 ITX case (size of a book), Windows 10/Ubuntu
Tablet/Laptop: Asus Transformer T100, Intel Atom 2GB RAM, Windows 10 x86
Mobile:Xiaomi Redmi Note 3 Pro
avada
Posts: 1934
Joined: February 10th, 2008, 6:30 am
Location: Hungary

Re: Responsiveness & Jank Thread

Post by avada »

Hmm... To me the upper graph is mostly red sometimes with a quite exteme ampliteude. especially when I alt+tab back to the page, in which case it's just vertical lines... :)
Ver Greeneyes
Posts: 1030
Joined: June 28th, 2008, 4:57 am

Re: Responsiveness & Jank Thread

Post by Ver Greeneyes »

Grantius wrote:Thanks for this, works well. I assume that means it doesn't work for Android?
No idea, honestly. It might, since Firefox OS is based on the same kernel, and that's that platform they focused on first. But I wouldn't mess with it if it isn't turned on by default.

avada wrote:Hmm... To me the upper graph is mostly red sometimes with a quite exteme ampliteude. especially when I alt+tab back to the page, in which case it's just vertical lines... :)
Do you have a lot of tabs open? Large pauses probably indicate garbage or cycle collection. If your computer is very busy (say, running Folding@Home or a BOINC project) that will also cause frequent latency spikes. It's interesting that alt-tabbing makes it worse.
Post Reply