diff options
author | Joel Martin <github@martintribe.org> | 2018-07-31 11:02:37 -0500 |
---|---|---|
committer | Joel Martin <github@martintribe.org> | 2018-07-31 11:02:37 -0500 |
commit | 876a691d2a376a2eda810a27097727ac35d910e5 (patch) | |
tree | 43f49fc66dfc790137939c5954f6daf89fe77753 /core/wasm/index.js | |
parent | 5372d169ccf9dc0b4d2311ea4d7a1b8ab7b42af4 (diff) | |
download | novnc-wasm.tar.gz |
wasm: use port 7080, use kanaka/rust-wasm imagewasm
Diffstat (limited to 'core/wasm/index.js')
-rw-r--r-- | core/wasm/index.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/wasm/index.js b/core/wasm/index.js index 7570b96..39ece56 100644 --- a/core/wasm/index.js +++ b/core/wasm/index.js @@ -19,15 +19,17 @@ let imgData = new ImageData(u8array, WIDTH, HEIGHT) let frame = -1 function renderLoop() { - //const startMs = (new Date()).getTime() fps.render() frame += 1 + //const tms1 = (new Date()).getTime() novnc.draw(pointer, WIDTH, HEIGHT, frame) + //const tms2 = (new Date()).getTime() ctx.putImageData(imgData, 0, 0) + //const tms3 = (new Date()).getTime() + //console.log("elapsed 1:", tms2 - tms1, "elapsed 2:", tms3 - tms2) animationId = requestAnimationFrame(renderLoop) - //console.log("elapsed:", (new Date()).getTime() - startMs) } |