<div dir="ltr">Thank you very much : I didn't knew that new API.<div>I'll have a closer look at your articles, and use this function instead of setTimeOut/setInterval.</div><div><br></div><div>Regards</div><div><br>
</div><div>Laurent Bernabe</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014/1/8 Daniel Narvaez <span dir="ltr"><<a href="mailto:dwnarvaez@gmail.com" target="_blank">dwnarvaez@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>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.<br>
<br></div>And that seems the philosophy behind this API<br><br><a href="https://developer.mozilla.org/en/docs/Web/API/window.requestAnimationFrame" target="_blank">https://developer.mozilla.org/en/docs/Web/API/window.requestAnimationFrame</a><br>
<a href="https://hacks.mozilla.org/2011/08/animating-with-javascript-from-setinterval-to-requestanimationframe/" target="_blank">https://hacks.mozilla.org/2011/08/animating-with-javascript-from-setinterval-to-requestanimationframe/</a><br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On 7 January 2014 17:37, laurent bernabe <span dir="ltr"><<a href="mailto:laurent.bernabe@gmail.com" target="_blank">laurent.bernabe@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello everyone,<div><br></div><div>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.</div>
<div>
<br></div><div>This is why I am wondering what should be the ideal range for animations Frames Per Second value ?</div><div><br></div><div>Regards</div><span><font color="#888888"><div><br></div><div>Laurent Bernabe</div>
</font></span></div>
<br>_______________________________________________<br>
Sugar-devel mailing list<br>
<a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">Sugar-devel@lists.sugarlabs.org</a><br>
<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
<br></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br>Daniel Narvaez<br>
</font></span></div>
</blockquote></div><br></div>