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
33
S
4
Posts: 57
Reputation: 1,575

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
159
S
67
G
43
Posts: 2,603
Reputation: 36,028

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
35
S
10
Posts: 390
Reputation: 3,278

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
98
S
35
G
11
Posts: 289
Reputation: 13,087

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
33
S
4
Posts: 57
Reputation: 1,575

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
172
S
50
G
184
Posts: 8,445
Reputation: 116,109

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
98
S
35
G
11
Posts: 289
Reputation: 13,087

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
403
S
238
G
89
Posts: 24,660
Reputation: 196,167

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
159
S
67
G
43
Posts: 2,603
Reputation: 36,028

Post » Mon Sep 04, 2017 7:28 pm

We already can use Electron under Construct 2.
https://c2electron.github.io/guide/
Liked something I say?
Tip. My Bitcoin address: 1PLaeKmXQ8vEdGGJqXMq3KyB8hxeddxeSv
B
28
S
9
G
4
Posts: 359
Reputation: 4,246


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 12 guests