1
0
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:
tobspr
2020-05-15 09:09:37 +02:00
parent b64bbc8132
commit c3e0cb5a46
5 changed files with 38 additions and 15 deletions

View File

@@ -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