4 ms·
Nice writeup, thanks. I'd been thinking of playing with Go/WASM for http://8bitworkshop.com http://8bitworkshop.com someday. For now, JS is plenty fast enough f
by sehugg 8y ago
Nice writeup, thanks. I'd been thinking of playing with Go/WASM for http://8bitworkshop.com http://8bitworkshop.com someday. For now, JS is plenty fast enough for 1-3 MHz 8-bit emulators.
BTW, I've never had performance problems with HTML Canvas, and I use setTimeout(), not requestAnimationFrame. The only thing I do every frame is putImageData() on a retained Uint32Array buffer. Maybe you could use the Chrome Performance devtools to figure out what is going on.