Guide: Fix Jank in r190+ Node-Webkit Export

Discussion and feedback on Construct 2

Post » Thu Dec 25, 2014 12:49 pm

Been following the numerous threads on this whole chrome stutter thing.

Since we target Windows 8 we use IE for all testing.

Now due to the holiday break I decided to run one of our games in Chrome, and - the stuttering, whaattt!!! - Chrome is completely broken.

The fact that this has been going on for months now, and still hasn't been addressed by the big guns does not (IMO) bode well for our chosen dev tool - C2.

Either Google don't care, can't fix it, or the problem lies only with C2 builds - either way it leave all Devs in this circle in a precarious position.

Sadly since Node depends on Chrome, export to desktop is also flawed.

This is a crying shame, give the brilliant work-flo of C2, and its very quick update cycle, only to be ruined by third party requirements.

This could be the first time in history, where you have to display a banner in your game that reads: "You are running your game in Chrome. Please note that this game requires IE for smooth performance!"
If it can be done, someone on the web will show you how to do it!

CDASI Games Mentality Break Splat-a-bug FlapFleet Challenge
B
34
S
12
G
7
Posts: 356
Reputation: 7,144

Post » Thu Dec 25, 2014 1:09 pm

Like you, plenty of other people have noticed this problem and have reported it to Google as well. It does beg some serious questions about the risks of being totally reliant on unpaid 3rd parties for the quality of your work... The bug report here has been progressing slowly.
I only occasionally visit - I'm learning C# for Unity, but c2 is still a respectable game engine imo....
B
73
S
19
G
66
Posts: 2,198
Reputation: 42,183

Post » Thu Dec 25, 2014 1:17 pm

@michael

Chrome is the dominant browsers, for Win 7/8, so its the goto browser for testing for most of us. This isn't a C2 problem but... it is a C2 problem in the end, because we rely on these end tools to export.

HTML5 is designed for the web, fine, we get that, but this situation is critical because the web (Chrome & Firefox being the bulk) currently is broken for HTML5 games.

So atm, here's the export options:

Chrome Store = can't use WebStorage, no functional IAP system. /seppuku
Firefox Market = forget about it, performance is horrendous and stutters like mad.
Direct HTML5 for browsers = If they are on recent Chrome or Firefox, its unplayable due to stutters.
Android = wrappers rely on Chromium, its also affected by the stutter bug. Crosswalk is also plagued with security flaws that flag your app to be removed by Google. You just hope players don't mind the stutters. Maybe its on mobiles so they aren't as hardcore as PC gamers are about such things... :/
iOS = CJS WebView+ which uses WKWebView, great when it works, but its got a major flaw of losing save data to iOS8's auto-clean process when devices run low on storage. O_o

Finally, direct PC/MAC/Linux export: Use an older NW else risk the stutters. Sadly Linux is still broken due to NW not updating library dependency. Looks like PC/MAC with NW 10.5 is the only viable option, even-though its not optimal (Steam Overlay, Cloud Save?)..
B
70
S
24
G
19
Posts: 1,757
Reputation: 17,609

Post » Thu Dec 25, 2014 2:04 pm

@Silverforce

There's nothing unsolvable here, we should see improve through 2015 and beyond

:D
B
18
S
6
G
1
Posts: 783
Reputation: 4,187

Post » Thu Dec 25, 2014 8:17 pm

Browsers are going to keep breaking from here to forever. What gets me is Ashley updating to a version of node that had severe, obvious problems. And sticking with it for no apparent reason (It has 64bit export! More bits!).

It's easy enough to swap, but we shouldn't have to bother. I've said it before: C2 ought to commit to maintaining compatibility with the last 2 or 3 versions of node-webkit.

Intel XDK, for example, allows you to export with stable, beta, and alpha versions (all based on different versions of chromium). IIRC, you can also choose to export using older stable versions. Bottom line: you have a choice.

It's worth saying that chrome 39, the current stable, isn't bad. It's not completely smooth, but it's not as inconsistent as Canary, which, in its defense, is an alpha release.
Don't lose your work. Backup your game with Dropbox.
B
44
S
10
G
10
Posts: 1,106
Reputation: 9,187

Post » Thu Dec 25, 2014 11:50 pm

@Silverforce
Chrome is the dominant browsers, for Win 7/8, so its the goto browser for testing for most of us.
True indeed, but given the size of Google and the resources at its disposal you can't help but ask why this ongoing issue has not been solved already, options:
    Can't fix it
    Don't care - the fix can wait till google is ready
    HTML5 is not ready for serious workloads - like games

This isn't a C2 problem but... it is a C2 problem in the end, because we rely on these end tools to export.
Not a C2 problem, but a C2 flaw, because it is 100% reliant on third parties who simply aren't concerned enough to give priority to the bugs they introduce.


HTML5 is designed for the web, fine, we get that, but this situation is critical because the web (Chrome & Firefox being the bulk) currently is broken for HTML5 games.
Sadly this problem is inherent to the web. Browser wars, inconsistencies, and unfixed bugs, have always been the way of the web. It is not likely to ever improve....

So atm, here's the export options:....
The way I see it, the only export option right now is Win8. All the other options are broken.


@szymek
There's nothing unsolvable here, we should see improve through 2015 and beyond
Now that does sound familiar....


Saddest part:
Construct 2 is easily the best 2D game dev tool around (imo) - excellent work flow, frequent updates, prompt bug fixes, new features continually added.

But it constantly gets broken for the most part - if you want the world to play your game - by third party dependencies!!!

This kind of thing is always going to be an issue, has been in the past, is right now, and will again be in the future.

The only option we have, each time the other party creates a bug, is to wait for the other party to fix the problem...

Of course in the meantime you cop the 'what a crappy game' from the would-be player\customer - well that is good for business...
If it can be done, someone on the web will show you how to do it!

CDASI Games Mentality Break Splat-a-bug FlapFleet Challenge
B
34
S
12
G
7
Posts: 356
Reputation: 7,144

Post » Fri Dec 26, 2014 1:30 pm

"Can't fix it
Don't care - the fix can wait till google is ready
HTML5 is not ready for serious workloads - like games"

We all know that 2 is the anwser, they broke it so they can fix it, and html5 before that went really great for gaming, however that is getting ridiculous at this point, it is not like they think of chrome as a simple browser, how could that kind of things go into the stable channel, the nice part is that there does not seems to be a way for us to fix it (so nobody will simply workaround that).

I know the situation will get better, and as a non-wrapper and non-profit user it really does not matter for me what happens to node-webkit or crosswalk, but that makes me wonder about who is really trying to do what, like it is not the first time the chromium takes décisions that bothers everyone (the XP and Vista dropped support, sure XP is not backed up by microsoft anymore, but Vista I am not sure.), however the fact is: if firefox got broken, or even opera, the situation would not be as bad, that is plain stupid, we should not have to rely on how one browser is performing, how did that happen?
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
52
S
22
G
18
Posts: 2,122
Reputation: 17,093

Post » Fri Dec 26, 2014 8:00 pm

Question - I'm using C2 64bit version for windows 8. Would I experience any problems by instead running C2 32bit in order to use NW 10.5? Thanks.
Image
B
20
S
4
Posts: 382
Reputation: 2,964

Post » Fri Dec 26, 2014 8:28 pm

@PSI

You shouldn't. Just smoother gameplay. ;)
Don't lose your work. Backup your game with Dropbox.
B
44
S
10
G
10
Posts: 1,106
Reputation: 9,187

Post » Fri Dec 26, 2014 8:32 pm

@TiAm - thank you.
Image
B
20
S
4
Posts: 382
Reputation: 2,964

PreviousNext

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 2 guests