I'm trying to get 2d vector rendering working in my custom C++/opengl 
engine, I have vector data that I'm parsing from an SWF file.

I'm currently drawing it using Skia, but I can't get GPU mode working on 
HTML5, publicly available binaries aren't built with gpu mode enabled, and 
when I try to build it I get weird artifacts, even in CPU mode.

I figured since Canvas was "native" I should just do two render paths, one 
Skia on Windows and Canvas in HTML5.

The plan was to use EM_ASM to call ctx.lineTo() and such. Then at the end 
of each frame call canvas.getImageData() and copy it into HEAP8[ptr], right 
now I just get black image data.

But it's also extremely slow, it makes me wonder if this is really gonna 
work.

Does anyone have advice about fast 2d path renderers? Doesn't necessarily 
have to be GPU based, but I'm looking to transfer ~1600x900 at 30fps with 
MSAA, or some other high quality AA.

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/emscripten-discuss/6457d279-b004-43f8-aad6-ee4aa4d9b8een%40googlegroups.com.

Reply via email to