Screen flashing with NWjs / Audio related

Discussion and feedback on Construct 2

Post » Tue Nov 15, 2016 10:13 am

We've gathered pretty much details after some investigations regarding this issue which should help fixing the problem. @TheRealDannyyy has already created a bug report on NW.js GitHub. Your upvotes will surely help so please take a look on the bug report whenever you have a moment. Thanks.
ImageImageImage
B
33
S
19
G
82
Posts: 1,039
Reputation: 46,257

Post » Tue Nov 22, 2016 11:27 pm

The bug was investigated by the NW.js team and then reported further to the Chromium team by @Ashley and it looks like we have the solution!

Based on suggestion from the Chromium team I made some tests with the --disable-direct-composition Chromium option. I cannot replicate screen flickering any more while using this option. More over this option fixes also the Recording gameplay issue (NWjs, youtubers) issue.

I asked Chromium team about consequences of using this option. It disables the DirectComposition component which in theory should reduce the app performance by around 10%. However I could not notice any performance drop while testing it with my game so the performance drop is indeed not big.

For those who are not familiar of how to set up Chromium args in C2, here's a short tutorial:
1. Go to {your C2 directory}\exporters\html5\nwjs
2. Open package-win.json file with any text editor
3. Add "--disable-direct-composition" to the chromium-args section
Image
4. You may also want to add it to the package-preview.json to have it fixed also in preview mode

I don't know if this is the final solution or Chromium team will fix DirectComposition feature. But For now is a very decent solution which fixes very serious (in my opinion) issues with C2 PC apps.

Once again thank you @TheRealDannyyy, @Armalido, @MadSpy and all for your support in solving this issue ;)
ImageImageImage
B
33
S
19
G
82
Posts: 1,039
Reputation: 46,257

Post » Tue Nov 22, 2016 11:54 pm

Thanks for sharing!
B
125
S
43
G
41
Posts: 849
Reputation: 28,260

Post » Wed Nov 23, 2016 1:57 am

@BackendFreak So this fixed the flickering AND the screen capture issue? Well done!

Kudos everyone! I didn't help much but I was definitely keeping my eye on this and the screen capture thread. Glad to see such devoted efforts.
B
45
S
13
G
3
Posts: 276
Reputation: 4,598

Post » Wed Nov 23, 2016 7:57 am

Did Ashley give em a little kick or something, that's surely not the behavior that I'm used to see from them. :P
Anyway, we got a workaround with a minimum of downsides that should be good for now.
The bug is still somewhere but now they can feel free to take more time for finding and fixing it.

Thumbs up, I hope they keep on with this working speed in the future and thanks again Ashley for reporting the issue to them in a professional way!
ImageImageImage
B
69
S
24
G
78
Posts: 695
Reputation: 45,332

Post » Wed Nov 23, 2016 4:06 pm

Does anyone know if this workaround helps with greenworks not showing up for steam games? Just curious.
B
48
S
23
G
66
Posts: 1,144
Reputation: 39,059

Post » Tue Nov 29, 2016 10:17 pm

Thanks for sharing the workaround, should be a sticky or something god dammit.
Black Bobby The Hole RPG game Greenlit with 303 votes.
B
38
S
9
G
1
Posts: 174
Reputation: 3,233

Post » Thu Dec 08, 2016 3:48 am

Just one more (and the last I think) update. Chromium team just marked this bug as fixed: https://bugs.chromium.org/p/chromium/is ... 667731#c32

The official fix will be implemented in Chromium 56, so should appear soon in one of upcoming NW.js releases.
ImageImageImage
B
33
S
19
G
82
Posts: 1,039
Reputation: 46,257

Post » Wed Feb 22, 2017 5:19 am

Is this bug fixed in NW.js v0.20.0?
B
45
S
19
G
3
Posts: 102
Reputation: 4,598

Post » Wed Feb 22, 2017 1:38 pm

HessamoddinS wrote:Is this bug fixed in NW.js v0.20.0?

This is fixed for all NW.js versions starting from v0.19.1, so you're good to go with that version.
More details can be found HERE.
ImageImageImage
B
69
S
24
G
78
Posts: 695
Reputation: 45,332

PreviousNext

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 9 guests