sethvincent / gameloop

game loop for javascript – server or browser.
http://crtrdg.com
53 stars 8 forks source link

Server context should use `setImmediate` and `process.nextTick(callback)`? #3

Closed kevzettler closed 8 years ago

kevzettler commented 9 years ago

Is there any value in using setImmediate or process.nextTick fallbacks for the server environment.

sethvincent commented 8 years ago

This part of the code got factored out because of the added dependency raf. But you're right, it may have been good to use something like next-tick, which uses process.nextTick in node and other fallbacks for the browser.