asm.js physics for iOS

Discussion and feedback on Construct 2

Post » Thu Oct 29, 2015 2:47 am

Anyone know if Chrome (iOS) has added support for asm.js physics yet?

If not, anyone heard anything about future plans to implement it?
Mega Game Studios is a tiny independent game studio run from our apartment in Melbourne, Australia. We're not quite sure what we do yet but we think it has something to do with apps, board games and plush toys.

www.megagamestudios.com
B
18
S
7
G
3
Posts: 85
Reputation: 2,920

Post » Thu Oct 29, 2015 3:37 am

Does it not work?
B
92
S
32
G
106
Posts: 5,272
Reputation: 69,455

Post » Sun Nov 01, 2015 9:30 pm

The latest official blog post I can find states that it is not recommended for native iOS applications as it is not supported properly and may decrease performance :

https://www.scirra.com/blog/132/more-ab ... ed-physics
Mega Game Studios is a tiny independent game studio run from our apartment in Melbourne, Australia. We're not quite sure what we do yet but we think it has something to do with apps, board games and plush toys.

www.megagamestudios.com
B
18
S
7
G
3
Posts: 85
Reputation: 2,920

Post » Sun Nov 01, 2015 9:43 pm

The asm.js joints are broken and I have no idea if/when they will be fixed - bug report. Although the aspiration is to move to asm.js physics, I doub't it'll happen any time soon (my report was made in Aug 15 and it was flagged as a duplicate of a problem identified in Feb 15!).
A big fan of JavaScript.
B
74
S
20
G
69
Posts: 2,203
Reputation: 43,828

Post » Tue Nov 03, 2015 12:04 am

Thanks Colludium, do you know if this bug is present on both Android and iOS?

My game doesn't use joints so I'm still curious to know if non-joint asm.js physics is expected to have reduced performance on iOS. Some quick testing on my iPad didn't reveal any significant performance drop but I'm curious to know if anyone else has had any experience using asm.js on iOS devices?
Mega Game Studios is a tiny independent game studio run from our apartment in Melbourne, Australia. We're not quite sure what we do yet but we think it has something to do with apps, board games and plush toys.

www.megagamestudios.com
B
18
S
7
G
3
Posts: 85
Reputation: 2,920

Post » Tue Nov 03, 2015 3:37 pm

Chrome on iOS is basically a wrapper around Safari, because Apple don't allow different browser engines on iOS (and how they get away with that I don't know). Currently I think Chrome on iOS uses UIWebView which does not support Javascript JIT compilation (i.e. fast javascript), but I guess Chrome on iOS will soon move to WKWebView which does, so that should significantly improve performance for anything JS-based.

Note that whether or not "asm.js is supported" depends on your definition - technically it is supported everywhere, even on old browsers, because it's just JS code. Whether or not it runs as fast as possible depends on the JS engine optimisations, and that is again different to having a specific parser for asm.js like Firefox has. Safari has a pretty sophisticated JS engine so when it can use JIT asm.js code should be very fast.
Scirra Founder
B
395
S
231
G
88
Posts: 24,367
Reputation: 193,684


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 13 guests