emscripten newtontest

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

Re: emscripten newtontest

Postby Marc » Tue Jun 04, 2013 3:11 pm

Oh wow thx for all the testing. :) I myself only have a normal pc with Windows on it. I wasn't able to test it myself on a Mac or even on Linux so far.

As far as I know, the game should run on all browsers that support html5 and webgl. So far I know that it works on firefox and chrome on windows. I also assume it runs on firefox on chrome on linux and mac. Chrome on Mac have you tested thx again :)
The game also "runs" on Firefox on Android - that's currently the only mobile browser that supports webgl afaik. However, it runs really slowly - practically not playable.

What's really interesting to see it the next few versions of firefox. They are working on enabling a special optimized mode with javascript that got generated from c++ (and simliar). Basically, an important step in the compilation from c++ to javascript currently is a large js array that is used to simulate native memory. On top of that, malloc and free etc. is simulated. Right now, the javascript vms emulate this as a large simple javascript array. The Firefox team is working on detecting this and mapping it to a more hardware near representation, making it run multiple times faster. And this is alredy in Firefox nightly! You can download the nightly build and try it. According to benchmarks, it's approx only 3x slower than running natively compiled c++ code. Not sure if that's true, but it makes sense that it can run a lot faster since code generated from c++ code guarantees that there aren't some mysterious type changes etc. that can happen in javascript allone. So 2-3 versions from now, this is supposed to be in mainstream firefox. The chrome team also discusses to add special optimizations to execute such code. Afaik, there is nothing runnable yet though.
Millenium Project Enterprises - Hobbyist Gamedev Group http://www.mpe-online.org
Walkover is now on Steam => http://store.steampowered.com/app/348700/
User avatar
Marc
 
Posts: 281
Joined: Sun Mar 14, 2004 4:07 pm
Location: Germany

Re: emscripten newtontest

Postby Marc » Fri Aug 30, 2013 9:59 pm

I made another game with newton and emscripten for ludum dare 27 => http://www.ludumdare.com/compo/ludum-dare-27/?action=preview&uid=11637. You can also download a native build. when I find the time, I'ld like to add android as a target plattform as well. :)
Millenium Project Enterprises - Hobbyist Gamedev Group http://www.mpe-online.org
Walkover is now on Steam => http://store.steampowered.com/app/348700/
User avatar
Marc
 
Posts: 281
Joined: Sun Mar 14, 2004 4:07 pm
Location: Germany

Previous

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 3 guests