Re:Raycaster in HTML5 / JavaScript
by zokier on Tuesday October 04, 2011 @02:50PM
(#3072279)
I think the general attitude is quite opposite. We're giving up Flash because browser-based gaming actually seems a viable thing. And therefore community feels the need to take control of the platform away from singular corporation (Adobe) to somewhat neutral committee (WHATWG).
[ Parent
| on HN ]
This doesn't really answer the question. In what way is it viable if it's currently a tiny fraction of the speed of what's easily attainable with a plugin, and shows little chance of improvement over the next five years?
Could you point some benchmark actually showing canvas performing at tiny fraction of Flash's speed? Considering that they both are ECMAScript-based and Firefox got even some code from Adobe for their JS engine, I'd imagine that the performance difference wouldn't be that great.
I found one (micro)benchmark[1], and in my quick unscientific tests, canvas-version performed quite well compared to Flash (70 FPS for canvas, and 40 FPS for Flash, Firefox 7 on Windows 7).
And I certainly believe that there is great chance of improvement, as the APIs an techniques are quite young yet. See Mozillas Azure project as an example: http://blog.mozilla.com/joe/2011/04/26/introducing-the-azure...