News for hackers. Stuff that matters.
Re:Artillery is building a hardcore RTS with HTML5 and WebGL by codexon on Thursday September 19, 2013 @03:33PM (#6413723)
I think Javascript is too slow for 3d gaming.

If you look at this HTML5/WebGL minecraft engine, it stutters even without any other players or bots in the environment.

http://voxeljs.com/#gallery

Meanwhile Minecraft running in Java is smooth on even the slowest machines.

Benchmarks indicate that Javascript is 4x slower than Java.

http://j15r.com/blog/2013/07/05/Box2d_Addendum

The alternatives like ASM.js and PNACL are far from usable. ASM.js has no support for threads and PNACL is unlikely to be supported outside of Chrome. They also have no debugging support.

Re:Artillery is building a hardcore RTS with HTML5 and WebGL by sspiff on Thursday September 19, 2013 @04:54PM (#6414232)
This is exactly what they said about Java ten years ago (and I still hear it today): "Java is way to slow for games/anything performance-critical".

The choice of Java in your argument is kind of ironic to me.

Re:Artillery is building a hardcore RTS with HTML5 and WebGL by codexon on Thursday September 19, 2013 @05:29PM (#6414451)
Minecraft isn't exactly a very demanding game.

Also 10 years ago Java was nowhere near as fast as it is now. If you are saying that Javascript might be an option 10 years from now, I am not disagreeing with you.

Re:Artillery is building a hardcore RTS with HTML5 and WebGL by kcbanner on Thursday September 19, 2013 @11:11PM (#6415749)
Its actually very demanding, CPU and memory wise.
Re:Artillery is building a hardcore RTS with HTML5 and WebGL by knome on Friday September 20, 2013 @11:15AM (#6418209)
The question for that is whether that CPU and memory use is required by the game, or the result of the language and runtime used to craft it.
Re:Artillery is building a hardcore RTS with HTML5 and WebGL by vinkelhake on Thursday September 19, 2013 @06:36PM (#6414749)
Java has gotten faster in the last decade, but it's still not used for games where performance matters.
Re:Artillery is building a hardcore RTS with HTML5 and WebGL by DigitalJack on Thursday September 19, 2013 @06:32PM (#6414734)
Actually minecraft gets pretty shaky on my mbp 2009.

My minecraft server can get bogged down just my wife and I playing. That's on a core2duo 2.0GHz with 4GB.

It plays better on my phone.

Re:Artillery is building a hardcore RTS with HTML5 and WebGL by irrlichthn on Thursday September 19, 2013 @04:02PM (#6413877)
Re:Artillery is building a hardcore RTS with HTML5 and WebGL by thelukester on Thursday September 19, 2013 @09:05PM (#6415378)
Your demo was also choppy for me on 2.2 Core 2, 460m, Chrome 29, Win7.

After your experience with both native and WebGL game development, don't you think it's a little premature to make a hardcore game targeting only WebGL?

Thanks for sharing Irrlicht engine with us!

Re:Artillery is building a hardcore RTS with HTML5 and WebGL by jsolson on Thursday September 19, 2013 @04:10PM (#6413931)
That actually stutters rather a lot on my Chromebook Pixel :(
Re:Artillery is building a hardcore RTS with HTML5 and WebGL by codexon on Thursday September 19, 2013 @04:29PM (#6414067)
It also stutters on my i5-750. Not exactly the newest CPU, but it runs every modern native game just fine.
Re:Artillery is building a hardcore RTS with HTML5 and WebGL by cdash on Thursday September 19, 2013 @10:16PM (#6415619)
In addition to all the stuttering it looks terrible graphics wise.
Re:Artillery is building a hardcore RTS with HTML5 and WebGL by ilaksh on Thursday September 19, 2013 @08:45PM (#6415310)
Your performance is not typical. Webgl performance is dependent upon drivers and system config. For other people like myself those demos run smoothly.
Re:Artillery is building a hardcore RTS with HTML5 and WebGL by lbenes on Thursday September 19, 2013 @08:25PM (#6415232)
As a hardcore SC2 player, I'd only be interested in a native version of this game. Even the latest ASM.JS demos like Epic Citadel run chopping on my system. Hardcore gamers like myself won't sacrifice performance for a the luxury using poorly designed and immature technology like JS and WebGL.
Re:Artillery is building a hardcore RTS with HTML5 and WebGL by epsylon on Friday September 20, 2013 @08:17AM (#6417197)
And Epic's demo was their previous gen engine, Unreal Engine 3, which targets mobile platforms: iOS, Android, PSP... Meanwhile, the state of the art UE4 is only aimed at next gen consoles and native PCs games.
Re:Artillery is building a hardcore RTS with HTML5 and WebGL by mnemonik on Thursday September 19, 2013 @06:38PM (#6414758)
> They also have no debugging support.

When emscripten is passed the debug flag, it will generate source maps, which will let you step through your code, although inspecting variables still isn't a solved problem.

Re:Artillery is building a hardcore RTS with HTML5 and WebGL by ghostdiver on Thursday September 19, 2013 @03:52PM (#6413820)
JS port of Box2D is dead since 2008.
Re:Artillery is building a hardcore RTS with HTML5 and WebGL by ksrm on Friday September 20, 2013 @01:09PM (#6419022)
https://code.google.com/p/box2dweb/ tracks box2dFlash which was last updated in 2011.
Re:Artillery is building a hardcore RTS with HTML5 and WebGL by codexon on Thursday September 19, 2013 @03:54PM (#6413829)
Why is that relevant? It is still a valid example of non-trivial game code.