mirror of
https://github.com/tobspr/shapez.io.git
synced 2026-03-02 03:39:21 +00:00
Remove source maps and adjust targets
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
// We clamp high deltas so 30 fps is fairly ok
|
||||
const bgFps = 30;
|
||||
const desiredMsDelay = 1000 / bgFps;
|
||||
var bgFps = 30;
|
||||
var desiredMsDelay = 1000 / bgFps;
|
||||
|
||||
let lastTick = 0;
|
||||
|
||||
function tick() {
|
||||
const now = performance.now();
|
||||
const delta = now - lastTick;
|
||||
var now = performance.now();
|
||||
var delta = now - lastTick;
|
||||
lastTick = now;
|
||||
|
||||
// @ts-ignore
|
||||
|
||||
Reference in New Issue
Block a user