Random notes on making Gecko's canvas go fast on XO...

Martin Langhoff martin.langhoff at gmail.com
Tue Apr 7 07:15:36 EDT 2009


Over the last few weeks there's been growing interest in using the
support for HTML5's Canvas present in Browse.xo. A very quick test
felt fairly slow, but Alex and his colleagues are interested in
studying, profiling and working towards a solution.

So here's some notes I've collected for them -- it's not my area of
expertise anyway, so it'd be great to hear from others.

Cairo and 565 surfaces. The XO display doesn't use 8-bits per RBG
channel (aka 888). Instead, it downsamples colours to 565 (is that
still true?). If the whole stack is using 565, then we avoid costly
downsampling, and generally hit the fast paths...
http://lists.laptop.org/pipermail/sugar/2007-April/002247.html

Thread about X / Cairo optimisation
http://lists.laptop.org/pipermail/devel/2008-December/022042.html

Profiling tools
http://wiki.laptop.org/go/Performance_tuning

Something to play with - a simple Canvas and SVG benchmark
http://www.borismus.com/canvas-vs-svg-performance/

hth!


m
-- 
 martin.langhoff at gmail.com
 martin at laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff



More information about the Devel mailing list