Electron as an alternative to NW.js ?

Discussion and feedback on Construct 2

Post » Sat Oct 24, 2015 4:23 pm

I was researching a bit desktop wrappers, and I came across Electron (formerly Atom shell).

http://electron.atom.io/

It looks interesting and I wonder what are the real differences with NW.js, in terms of speed and smoothness (janks).
So far the interesting part seems to be the smaller file size generated and code protection that does not cause a 30% hit on performance like NW.js

@Ashely: have you thought about running some test to see how this compares?
B
32
S
4
Posts: 57
Reputation: 1,550

Post » Sat Oct 24, 2015 5:57 pm

Yeah, I read about it some time ago, and from what people saying on different portals/forums etc it looks like Electron is a bit better than NWjs.
But that's what they say,.. I didn't had a chance to play with it myself so I'm curious how C2 projects run using it.
ImageImageImageImage
B
157
S
65
G
41
Posts: 2,593
Reputation: 34,746

Post » Sat Oct 24, 2015 6:21 pm

@Ashley. I would be interested in this too. If NW.js doesn't get an update anytime soon fixing the performance issues plaguing lots of Construct games, (which chromium 43 was rumored to fix), I fear I will never be able to launch my game in a non broken state.

Electron seems to be using the latest chromium, and seems to be in more active development?
B
29
S
9
Posts: 356
Reputation: 2,938

Post » Sat Oct 24, 2015 8:37 pm

This is interesting. So what are the pros/cons for Electron as oppose to NW.jS (that we know of) ?
B
81
S
26
G
9
Posts: 244
Reputation: 10,616

Post » Sat Oct 24, 2015 10:10 pm

Have a look here:

http://tangiblejs.com/posts/nw-js-electron-compared

Particularly interesting the render engine (blink vs webkit). I have been following the jank issue in chrome bug tracker and while it is getting better, they admitted that they have still several other structural changes before they get rid of it and that could take time.
B
32
S
4
Posts: 57
Reputation: 1,550

Post » Sat Oct 24, 2015 10:29 pm

Does it have the full dom?
You know who will say nope if it doesn't.
Image ImageImage
B
168
S
50
G
164
Posts: 8,231
Reputation: 105,581

Post » Mon Oct 26, 2015 12:51 am

Well, wouldn't hurt to have it implemented as another option along with NW.js. But if NW.js really is ramping up for a pretty big update then things could get interesting soon too.
B
81
S
26
G
9
Posts: 244
Reputation: 10,616

Post » Mon Oct 26, 2015 12:19 pm

Integrating these engines is a huge amount of work and unless there's any concrete improvements then I don't see a reason to try. Both are based on the Chromium browser engine, so I don't see any reason Electron would be any better or worse.
Scirra Founder
B
387
S
230
G
88
Posts: 24,251
Reputation: 192,454

Post » Sat Jun 25, 2016 10:31 am

They made an updated version of this comparison if anyone is interested.

http://tangiblejs.com/posts/nw-js-and-electron-compared-2016-edition
ImageImageImageImage
B
157
S
65
G
41
Posts: 2,593
Reputation: 34,746


Return to Construct 2 General

Who is online

Users browsing this forum: tarek2 and 8 guests