Quantcast
Channel: Active questions tagged javascript - Stack Overflow
Viewing all articles
Browse latest Browse all 138163

Is there anything faster than setTimeout and requestAnimationFrame?

$
0
0

(I need a process.nextTick equivalent on browser.)

I'm trying to get the most out of javascript performance so I made a simple counter ... In a second I make continuous calls to a function that just adds one to a variable.

The code: codepen.io/rafaelcastrocouto/pen/gDFxt

I got about 250 with setTimeout and 70 with requestAnimationFrame in google chrome / win7. I know requestAnimationFrame goes with screen refresh rate so, how can we make this faster?

PS: I'm aware of asm.js


Viewing all articles
Browse latest Browse all 138163

Trending Articles