My app makes heavy use of HTML5 Canvas2D. After profiling I've found that highest number of function calls are HTML5 Canvas's .stroke() and .fill() functions. Therefore to further improve开发者_C百科 the performance of my app I have to optimize drawing on Canvas. I am considering Chrome's NaCl plugin. I found that it has a native interface pp::Graphics2D to draw 2D graphics. Does anyone know if the NaCl 2D graphics interface is faster than HTML5 Canvas 2D?
NaCL is much faster than WebGL or any other in-browser rendering methods.
I've ported a game engine to NaCL and it runs really smooth with very less performance glitches compared to the same native app. So comparing it to WebGL it should be few folds better.
精彩评论