Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

White flash when starting app since v0.9.0; goes away after using --disable-gpu #2837

Closed
Jrags87 opened this issue Dec 20, 2014 · 7 comments
Closed

Comments

@Jrags87
Copy link

Jrags87 commented Dec 20, 2014

I have an app that starts maximized with a dark background. Every NW release since 0.9.0 when I start my app there is a quick white flash (I'm assuming something related to the hardware renderer). if I use --disable-gpu argument, the white flash does not occur, but this is not a solution for me as I need gpu acceleration.

Also, if I update all files except nw.exe, the white flash will not occur. This leads me to believe my issue is related to a change made to the nw.exe file between v0.8.4, and v0.9.0.

I am already setting show: false in manifest, and then doing win.maximize(); win.show(); within my app.

With NW v0.8.4 and earlier the app launches perfectly without the flash.

Can this be fixed in an upcoming version? I have tested with Windows 7 and 8.1 also using Intel, nVidia, and AMD graphics cards and get the same results

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@Jrags87 Jrags87 changed the title White flash when starting app; goes away after using --disable-gpu White flash when starting app; goes away after using --disable-gpu with 0.11.4 Dec 21, 2014
@Jrags87 Jrags87 changed the title White flash when starting app; goes away after using --disable-gpu with 0.11.4 White flash when starting app; goes away after using --disable-gpu with v0.11.4 Dec 21, 2014
@4ver
Copy link

4ver commented Dec 21, 2014

@Jrags87 A way around this is to set the window to hidden and show it a few ms after the document has loaded

@Jrags87 Jrags87 changed the title White flash when starting app; goes away after using --disable-gpu with v0.11.4 White flash when starting app since v0.9.0; goes away after using --disable-gpu Dec 21, 2014
@kerwitz
Copy link

kerwitz commented Dec 24, 2014

@4ver How would you do this on the main window that is started by NW?

@kerwitz
Copy link

kerwitz commented Dec 25, 2014

Answering the question myself ;)
Include "show": false in your package.json and show the window through the nw.gui module later from inside your script.

@maschinenzeitmaschine
Copy link

maschinenzeitmaschine commented Feb 12, 2017

hi, i have the same problem - slightly different however:
i do not really care about any white flashes on startup but on window.location.reload (so show: false in manifest does not do the trick). which results in a white flash lasting about a full second - on mac as on pc. how can i get rid of this?

@nwjs-bot
Copy link

This should be working with latest version now.

In 0.13 we changed to an optimized architecture so more features can be supported, see http://nwjs.io/blog/whats-new-in-0.13/ and it's good for keeping up with Chromium upstream -- we released with Node.js v6.0 and new Chromium versions within 1 day after upstream release.

The new version would fixed many issues reported here and we're scrubbing them. This issue is closed as we believe it should be fixed. Please leave a message if it isn't and we'll reopen it.

@maschinenzeitmaschine
Copy link

hi, i just downloaded the latest version (20.2 sdk) and checked but the white flash on reload is still there - on mac as well as on pc...

@rogerwang
Copy link
Member

merge this issue with #5502

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants