i'm actuallyI'm making a multiplayer game wihtwith a nodejsNode.js server, and I'm searching what is the best wayfor how to loop, and at what interval should Iwrite the game loop.
I'm actuallycurrently using a setintervalsetinterval every 15ms, but someone saidtold me that if the code inside the setinterval haven'tsetinterval hasn't finished to runrunning after 15ms, it will add delay, and lags.
I have searched and found things like setimmediatesetimmediate, process.nextThickprocess.nextTick, but I don't know what should I use.
So what is the best way to loop witht, with he best performances performance?