diff --git a/game.js b/game.js index 83595f5..85edc36 100644 --- a/game.js +++ b/game.js @@ -372,8 +372,8 @@ export function tick(time, gl, params) { const campos = params.camera.position; - // expensive stuff, can take several cycles - try { + // world generation / geometry update + { // frame time is typically 16.7ms, so this may lag a bit let timeLeft = 10; const start = performance.now(); @@ -382,11 +382,6 @@ export function tick(time, gl, params) { timeLeft -= performance.now() - start; updateWorldGeometry(gl, params.world, campos[2], campos[0], timeLeft); } - catch (ex) { - if (ex !== 'timesup') { - throw ex; - } - } const objects = getObjects(params.world, campos[2], campos[0], params.worldGl);