mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-21 05:35:45 +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;
|
Player.lastUpdate = _thisUpdate - offset;
|
||||||
Engine.updateGame(diff);
|
Engine.updateGame(diff);
|
||||||
}
|
}
|
||||||
window.requestAnimationFrame(Engine.start);
|
window.setTimeout(Engine.start, CONSTANTS.MilliPerCycle - offset);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user