[Sugar-devel] What should be the ideal range for animations FPS ?
laurent bernabe
laurent.bernabe at gmail.com
Tue Jan 7 18:35:03 EST 2014
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 <dwnarvaez at 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.bernabe at 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 at lists.sugarlabs.org
>> http://lists.sugarlabs.org/listinfo/sugar-devel
>>
>>
>
>
> --
> Daniel Narvaez
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20140108/6c4c794a/attachment.html>
More information about the Sugar-devel
mailing list