News for hackers. Stuff that matters.
Re:Raycaster in HTML5 / JavaScript by zokier on Tuesday October 04, 2011 @01:49PM (#3071997)
I'd blame the implementation, not the platform in this case though, seeing how others have linked much faster JS raycasters.
Re:Raycaster in HTML5 / JavaScript by noduerme on Tuesday October 04, 2011 @01:58PM (#3072041)
I have to agree. But I still think it's weird that we're giving up Flash, with the argument basically that 3D games aren't necessary in the browser, and then going back to the stone age to reproduce basic 1993-era functionality in Javascript of all things.
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).
Re:Raycaster in HTML5 / JavaScript by noduerme on Tuesday October 04, 2011 @05:11PM (#3072936)
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?
Re:Raycaster in HTML5 / JavaScript by zokier on Tuesday October 04, 2011 @06:07PM (#3073135)
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...

[1] http://themaninblue.com/writing/perspective/2010/03/22/