v86
v86 copied to clipboard
Graphical output for nodejs
Adapt this old screen_sdl.js for the newer screen api (as in screen.js).
Since the browser use a canvas element to do the rendering, wouldn't it be easier to use node-canvas? This way the code would be common both for Node.js and browser... or at least give to the user the option about what graphica output to use.
@piranna The graphical output only needs a pixel buffer to draw to and font rendering, which is in my opinion simpler to do and faster when using sdl. Anyway, node-canvas would work too.
My fork of node-canvas use fbdev, that's mostly not hardware accelerated, but this can be fixed by adding support for EGL. Besides that, I find it simple to use...