Screen flashing with NWjs / Audio related

Discussion and feedback on Construct 2

Post » Wed Aug 31, 2016 9:48 pm

I'm not reporting this as a bug yet as I am not sure about the real reason of it. Just thought maybe someone experienced this already and could explain why this is happening.

When I run my game with NWjs (no matter if it's preview or exported version, also no matter if it's SDK or normal version of NWjs), the screen flashes from time to time. This does not occur when I preview the game in the browser.

All I managed to investigate is that it is related to Audio object. When I remove the Audio object, the screen doesn't blink any more. Is it possible that screen blinking/flashing might be caused by many/fast triggered audio sounds?

Here's the video of the problem. You can already see the quick blink in 2nd second of the video: https://www.youtube.com/watch?v=m7hQElQKO0M

@Ashley is this something known to you?

PS. I use the newest NWjs version and C2 r234
ImageImageImage
B
33
S
19
G
82
Posts: 1,039
Reputation: 46,257

Post » Wed Aug 31, 2016 10:39 pm

After several tests I found out it's NWjs problem. I tried versions 0.16.0, 0.15.0, 0.14.7 and problem still was there. So I jumped back some more to the past and tried version 0.13.0-rc1 and with this version screen does not blink.
ImageImageImage
B
33
S
19
G
82
Posts: 1,039
Reputation: 46,257

Post » Wed Aug 31, 2016 11:02 pm

Alright I went one by one NWjs versions. Problems starts from version 0.14.0 and up. So it might be Chromium 50 issue or something in NWjs. Olders versions don't have this issue.

BTW: I saw I'm not the only one with this issue: how-do-i-stop-this-flickering_t180999

@Ashley is this something Scirra wants to cover? I mean will you report that to NWjs or should I do it?
ImageImageImage
B
33
S
19
G
82
Posts: 1,039
Reputation: 46,257

Post » Thu Sep 01, 2016 4:30 am

We've seen exactly this flickering problem too. We rolled back to earlier version (pre 0.14.0) of nw.js to export our Gamescom build, and it worked fine. It seems to be a Chromium issue, not nw.js. Looks like it's this problem reported to Roger Wang (nw.js) here: https://github.com/nwjs/nw.js/issues/4947 and he's stated it's upstream (Chromium) and closed the report.

But finding the C2 Audio object might be causing it is really interesting and quite strange. @BackendFreak Can you make a bug report with example capx showing that the audio object is causing it?
B
34
S
8
G
1
Posts: 39
Reputation: 2,322

Post » Thu Sep 01, 2016 10:30 am

Well it's bonkers if removing audio fixes it since obviously audio has no part in the rendering engine whatsoever.

I'd suspect this is a graphics driver bug so it might be useful to correlate it with which systems are affected or not affected and what hardware they have. Also if you can reproduce it in Chrome, it would be good to file a report on crbugs.com with steps to reproduce, the list of affected hardware, etc.
Scirra Founder
B
403
S
238
G
89
Posts: 24,654
Reputation: 196,155

Post » Thu Sep 01, 2016 2:24 pm

No I can't reproduce it in Chrome. It only happens with NWjs. I might prepare the capx later.
ImageImageImage
B
33
S
19
G
82
Posts: 1,039
Reputation: 46,257

Post » Thu Sep 01, 2016 2:36 pm

Might it have something to do with the old bug with renaming project files?
Image ImageImage
B
172
S
50
G
184
Posts: 8,444
Reputation: 116,107

Post » Thu Sep 01, 2016 7:00 pm

Just FYI: problem still occurs in NWjs 0.17.0.

I have changed the project name indeed. What was the issue with that @newt? Can you give some more details?

Thanks
ImageImageImage
B
33
S
19
G
82
Posts: 1,039
Reputation: 46,257

Post » Thu Sep 01, 2016 7:09 pm

Nwjs changed how they set up files internally, and it caused a few issues on older saves.
The workaround before the fix was to rename the project in C2.
Image ImageImage
B
172
S
50
G
184
Posts: 8,444
Reputation: 116,107

Post » Wed Oct 12, 2016 1:58 am

I have also been having this issue... Should I try to roll back to version 0.13.0-rc1?
B
15
S
2
Posts: 36
Reputation: 1,339

Next

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 14 guests