Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Game.registerMod('FPSTweaker',{init:function(){eval('Game.Loop='+Game.Loop.toString().replace(`Timer.say('START');`,`const startTimestamp=Date.now();Timer.say('START');`).replace('setTimeout(Game.Loop,1000/Game.fps);','setTimeout(Game.Loop,Math.max(1000/Game.fps-(Date.now()-startTimestamp),0));'));},save:function(){},load:function(){}});
Advertisement
Add Comment
Please, Sign In to add comment