|
|
|
@ -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(); |
|
|
|
|
|
|
|
|
|