On Wed, Aug 08, 2012 at 11:41:08PM +0200, Vincent Bernat wrote:
>  ❦  8 août 2012 22:00 CEST, Vincent Bernat <ber...@luffy.cx> :
> 
> > Please, have a look to:
> >  
> > http://www.red-team-design.com/wp-content/uploads/2011/11/css3-slick-progress-bars-demo.html
> >
> > With Conkeror, I get a 20% CPU use of this page when the buffer is
> > displayed and 10% when it is not.
> >
> > With Firefox, I get a 20% CPU use but 0% when the page is in another
> > tab.
> >
> > I think Conkeror is missing something to tell XUL that the buffer is not
> > displayed so that it does not play useless animations. Maybe this is
> > related with requestAnimationFrame(). I am not familiar enough with
> > this.
> >
> > Those kind of animated progress bars are becoming popular and if you
> > have a few tabs with them, you'll get a lot of wasted CPU use.
> >
> > I am using xulrunner 15b3 (from mozilla.debian.net).
> 
> OK, I wasn't able to sleep with this unresolved. :) So I have digged a
> bit and I have found that we can tell the browser object if a buffer is
> active or not. I have came up with this patch. I know _nothing_ about
> XUL and Gecko, so this is just an idea.
> 
> Also, maybe there are other places where this could be applied (when
> Conkeror window is iconified? Or not visible?).
> 
> Tell me if you want me to file a proper bug for this.

Your patch is pushed.  Thank you, this was a subtle bug, but a big
improvement.

-- 
John Foerch
_______________________________________________
Conkeror mailing list
Conkeror@mozdev.org
https://www.mozdev.org/mailman/listinfo/conkeror

Reply via email to