mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-30 01:47:33 +01:00
ENGINE: Use setTimeout() instead of requestAnimationFrame() (#421)
This commit is contained in:
parent
f2e1a67ec1
commit
02a436dc79
@ -407,7 +407,7 @@ const Engine: {
|
||||
Player.lastUpdate = _thisUpdate - offset;
|
||||
Engine.updateGame(diff);
|
||||
}
|
||||
window.requestAnimationFrame(Engine.start);
|
||||
window.setTimeout(Engine.start, CONSTANTS.MilliPerCycle - offset);
|
||||
},
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user