Thank you very much : I didn't knew that new API. I'll have a closer look at your articles, and use this function instead of setTimeOut/setInterval.
Regards Laurent Bernabe 2014/1/8 Daniel Narvaez <dwnarv...@gmail.com> > I'm not an expert of graphics performance or web technologies, but my > understanding is that you don't want to be the one setting the FPS. The > system will know much better when it's time to draw. > > And that seems the philosophy behind this API > > https://developer.mozilla.org/en/docs/Web/API/window.requestAnimationFrame > > https://hacks.mozilla.org/2011/08/animating-with-javascript-from-setinterval-to-requestanimationframe/ > > > On 7 January 2014 17:37, laurent bernabe <laurent.bern...@gmail.com>wrote: > >> Hello everyone, >> >> As I am programming on a recent laptop, it can be easy to call javascript >> method setTimeout with too high values, without noticing the wrong >> behaviour for real XO. >> >> This is why I am wondering what should be the ideal range for animations >> Frames Per Second value ? >> >> Regards >> >> Laurent Bernabe >> >> _______________________________________________ >> Sugar-devel mailing list >> Sugar-devel@lists.sugarlabs.org >> http://lists.sugarlabs.org/listinfo/sugar-devel >> >> > > > -- > Daniel Narvaez >
_______________________________________________ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel