INNER CODE UNIT · TypeScript

then

WorldQL/dreamlab-engine · engine/_web/main.ts:74

    then = now - (delta % FRAME_TIME);
    game.tickClient(delta);
  } else {
    console.log("skipped");
  }

  requestAnimationFrame(onTick);
};

requestAnimationFrame(onTick);

const FPS_TEST_MODE = false;

if (FPS_TEST_MODE) {
  setInterval(() => {
    MAX_FPS = Math.floor(Math.random() * (144 - 20 + 1)) + 20;
  }, 2000);
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…