node-game-loop icon indicating copy to clipboard operation
node-game-loop copied to clipboard

node.js accurate game loop

Results 2 node-game-loop issues
Sort by recently updated
recently updated
newest added

In your loop you have this line: if (Date.now() - previousTick < tickLengthMs - 16) { What is the hardcoded 16 for? I'm trying really hard to understand the serverside...

Hi! What about using process.nextTick instead of setTimeout?