News for hackers. Stuff that matters.
Re:Show HN: Snabbt.js – a minimalistic animation library by leeoniya on Friday January 02, 2015 @02:05AM (#8825869)
what makes is fast is the use of requestAnimationFrame [1] (rather than setTimeout or setInterval) that exists in all modern browsers and simply applying css, letting the browser handle and GPU-accelerate as it sees fit. the only thing the js does is compute the matrices for each step/frame in fixed-length typed arrays.

[1] https://github.com/daniel-lundin/snabbt.js/blob/master/src/m...

There are no comments on this comment yet.