[ubuntu-web] urgent javascript animation help needed

Brett Alton brett.jr.alton at gmail.com
Fri Oct 31 22:16:16 GMT 2008

So how was the step down in FPS preformed? Can you point to the file and line?

Thanks Emilio!

On Fri, Oct 31, 2008 at 5:20 PM, Matthew Nuzum
<matthew.nuzum at canonical.com> wrote:
> On Wed, Oct 29, 2008 at 11:38 AM, Matthew Nuzum
> <matthew.nuzum at canonical.com> wrote:
>> Hello, we've got a bit of a problem with some javascript animation for
>> the 8.10 release notice on the homepage. Apparently we've run into a
>> challenge between jquery and firefox that causes 100% cpu and dropped
>> frames when animating multiple objects.
> So here's what happened. If you check out the ubuntu.com homepage
> you'll see the animations went live. A big thanks goes to Emilio
> Lopez, aka Turl (http://turl.bloglivers.com/) who stepped up to the
> challenge. Instead of porting to a new library he chose to investigate
> jquery and somehow (boggles my mind how) he discovered that jquery's
> default framerate was ~ 76fps (1000/13) and suggested we change it to
> a lower value.
> Dropping down to 4fps caused a negligible cpu load on underpowered
> cpus but for release I decided to use 10fps which gave moderately low
> cpu usage and still provided for smooth looking animation.
> Thanks community for spreading the word and thanks Emilio for helping out!
> --
> Matthew Nuzum
> newz2000 on freenode
> --
> Ubuntu-website mailing list
> Ubuntu-website at lists.canonical.com
> https://lists.canonical.com/mailman/listinfo/ubuntu-website

Brett Alton
brett.jr.alton at gmail.com

More information about the Ubuntu-website mailing list