Browse Source

Remove stupid try catch from webgl_draw

ssao
A.Olokhtonov 7 months ago
parent
commit
48e9dd9a3e
  1. 4
      client/webgl_draw.js

4
client/webgl_draw.js

@ -78,7 +78,6 @@ function draw_html(state) { @@ -78,7 +78,6 @@ function draw_html(state) {
async function draw(state, context) {
const cpu_before = performance.now();
try {
const gl = context.gl;
const width = window.innerWidth;
const height = window.innerHeight;
@ -228,9 +227,6 @@ async function draw(state, context) { @@ -228,9 +227,6 @@ async function draw(state, context) {
setTimeout(next_tick, 0);
}
} catch (e) {
console.error('Draw failed:', e);
}
const cpu_after = performance.now();

Loading…
Cancel
Save