Re: (X)HTML5 + SMIL?

David Leunen <[email protected]> Mon, 8 Mar 2010 11:06:57 +0100
Newsgroups gmane.comp.web.smil
Message-ID <[email protected]>
--001636164013bb7dbb048147395c
Content-Type: text/plain; charset=UTF-8

> I'm curious what your experience implementing this in JS has been, whether
> there are particular performance issues you've encountered, or things that
> were particularly difficult that you may have had to hack around or
> anything?
>


I tried to introduce the least hacks possible. Nevertheless, I consider the
entire script is a hack.
I haven't stress tested it, so I don't know where are the performance
bottlenecks. I guess it depends on the JS engines.
The main difficulty is implementing additivity. The script need a major
rewrite for that (i.e it doesn't strictly follow the model SMIL defines :
aka sandwich model).
Another bug is that animations' starts are not strictly calculated, but
relies on events. So they may become out of sync, if they are repeated many
times.
Apart from that, everything was pretty straightforward, if I remember well.


(There's also that timesheet implementation :
http://www.tml.tkk.fi/~pv/timesheets/ )

--001636164013bb7dbb048147395c
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

=C2=A0<div class=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=3D=
"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div>I&#39=
;m curious what your experience implementing this in JS has been, whether t=
here are particular performance issues you&#39;ve encountered, or things th=
at were particularly difficult that you may have had to hack around or anyt=
hing?</div>
</blockquote><div><br></div><div><br></div><div>I tried to introduce the le=
ast hacks possible. Nevertheless, I consider the entire script is a hack.</=
div><div>I haven&#39;t stress tested it, so I don&#39;t know where are the =
performance bottlenecks. I guess it depends on the JS engines.</div>
<div>The main difficulty is implementing additivity. The script need a majo=
r rewrite for that (i.e it doesn&#39;t strictly follow the model SMIL defin=
es : aka sandwich model).</div><div>Another bug is that animations&#39; sta=
rts are not strictly calculated, but relies on events. So they may become o=
ut of sync, if they are repeated many times.</div>
<div>Apart from that, everything was pretty straightforward, if I remember =
well.</div><div><br></div><div><br></div><div>(There&#39;s also that timesh=
eet implementation : <a href=3D"http://www.tml.tkk.fi/~pv/timesheets/">http=
://www.tml.tkk.fi/~pv/timesheets/</a> )</div>
</div>

--001636164013bb7dbb048147395c--