Intel bringing SIMD to Javascript

Discussion and feedback on Construct 2

Post » Sat Mar 29, 2014 8:10 pm

This sounds like excellent news. What needs to happen before C2 devs are able to leverage this? ...Or is this what Crosswalk is?

https://01.org/blogs/tlcounts/2014/bringing-simd-javascript
ImageImageImage
B
38
S
5
G
4
Posts: 79
Reputation: 5,355

Post » Sat Mar 29, 2014 8:27 pm

From https://crosswalk-project.org/#documentation/about/faq

"On top of this, Crosswalk adds extra features which are not available in either Chrome or the Android webview, such as experimental support for SIMD and support for the Presentation API."
ImageImageImageImage
B
158
S
67
G
43
Posts: 2,603
Reputation: 36,003

Post » Sat Mar 29, 2014 10:13 pm

Yup, 2014 is gonna be a sweet year for HTML5 gaming.
B
70
S
24
G
19
Posts: 1,757
Reputation: 17,616

Post » Sat Mar 29, 2014 10:39 pm

That's pretty cool. I guess we just have to wait for it to be integrated into chromium/Firefox. I wonder if it speeds up asm.js at all.
Moderator
B
95
S
34
G
33
Posts: 3,007
Reputation: 27,876

Post » Sat Mar 29, 2014 11:09 pm

So does this mean there will be a huge whopping CPU speed boost to our games across all computers and mobiles? It's not very clear to me.
B
152
S
75
G
21
Posts: 1,795
Reputation: 23,285

Post » Sat Mar 29, 2014 11:39 pm

It will be a huge boost to all apps using the updated Javascript, as its able to tap into CPU/GPU and SoCs that support SIMD. GPUs especially since the base architecture is just essentially a lot of SIMD (or variants such as VLIW) processors in parallel.
B
70
S
24
G
19
Posts: 1,757
Reputation: 17,616

Post » Sun Mar 30, 2014 2:13 am

Another detail about how the API works and how it fits into the JavaScript landscape :

http://www.2ality.com/2013/12/simd-js.html
B
34
S
13
G
8
Posts: 134
Reputation: 8,118

Post » Sun Mar 30, 2014 3:30 am

Hmm... I wonder if this means you have to use emscripten or asm.js or if normal JavaScript can get the boost too. It's looking like the answer is no, though. If that's the case, it would be one more reason to eventually rewrite C2's engine in asm.js, if Ashley is up for that idea.
Moderator
B
95
S
34
G
33
Posts: 3,007
Reputation: 27,876

Post » Sun Mar 30, 2014 5:20 am

I think -- and I could be totally wrong, this is all a bit beyond me -- that this would be an additional boost over asm.js. I don't think you need to use asm.js to take advantage of it. But...I'd love to hear that from someone with a better understanding of all this. :)
Don't lose your work. Backup your game with Dropbox.
B
44
S
10
G
10
Posts: 1,106
Reputation: 9,202

Post » Sun Mar 30, 2014 5:42 am

Here's an interesting article about asm.js that also discusses SIMD opt's and how they can affect speed. This was written before SIMD could be accomplished inside of javascript:

http://arstechnica.com/information-tech ... -asm-js/3/
Don't lose your work. Backup your game with Dropbox.
B
44
S
10
G
10
Posts: 1,106
Reputation: 9,202

Next

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 11 guests