W3C home > Mailing lists > Public > public-canvas-api@w3.org > July to September 2011

Re: SVG vs canvas performance

From: Robert O'Callahan <robert@ocallahan.org>
Date: Tue, 19 Jul 2011 14:06:06 +1200
Message-ID: <CAOp6jLYOwjcNiOxJe6NPT4Zv=Ka0JDyC9rynaNG+KC8hYC3eAg@mail.gmail.com>
To: Chris Marrin <cmarrin@apple.com>
Cc: Henri Sivonen <hsivonen@iki.fi>, Jonas Sicking <jonas@sicking.cc>, Steve Faulkner <faulkner.steve@gmail.com>, HTMLWG WG <public-html@w3.org>, Frank Olivier <Frank.Olivier@microsoft.com>, Richard Schwerdtfeger <schwer@us.ibm.com>, Cynthia Shelly <cyns@microsoft.com>, David Singer <singer@apple.com>, "Tab Atkins Jr." <jackalmage@gmail.com>, "Edward O'Connor" <hober0@gmail.com>, Canvas <public-canvas-api@w3.org>
On Tue, Jul 19, 2011 at 5:35 AM, Chris Marrin <cmarrin@apple.com> wrote:

> I think this is the wrong comparison to use for this particular test case,
> for a couple of reasons. First, most browser vendors have done a lot of work
> recently on improving Canvas performance. The same can't be said about SVG.
> So Canvas is going to be significantly faster than SVG for that reason
> alone.

Sure. It was a thought experiment to look beyond where we are today, and
consider what needs to be done to make SVG faster, and which issues will be
most difficult to overcome.

Second, SVG is probably not even the best tool to use for this demo. It is
> basically just a bunch of images blitting around the screen. The better
> comparison would be to make a version using HTML images and CSS for
> animation. I haven't done the test myself, but WebKit would at least be able
> to give Canvas a run for its money since it accelerates both the rendering
> and animation of demos like this. We recently added the "step" timing
> functions which make flipbook animations much simpler.
> I'm writing this test now. Maybe I'll have some results in a day or two.

Looking forward to it!

"If we claim to be without sin, we deceive ourselves and the truth is not in
us. If we confess our sins, he is faithful and just and will forgive us our
sins and purify us from all unrighteousness. If we claim we have not sinned,
we make him out to be a liar and his word is not in us." [1 John 1:8-10]
Received on Tuesday, 19 July 2011 02:06:49 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:10:32 UTC