defos icon indicating copy to clipboard operation
defos copied to clipboard

White flash on startup

Open gianmichelemariani opened this issue 5 years ago • 7 comments

I've found that on startup of the application I get a white flash for 4-5 frames when using Defos that doesn't happen on vanilla Defold.

Is this something that can be fixed/worked around or is part of the loading process?

gianmichelemariani avatar Oct 09 '19 07:10 gianmichelemariani

It would be worth making an issue https://github.com/defold/editor2-issues/issues here about this. I assume on their vanilla engine they have the clear color set to black, but in the extended version it's set to white.

subsoap avatar Oct 09 '19 17:10 subsoap

Yep, will do. Will have to check first if with other native extensions it happens as well.

Thanks!

gianmichelemariani avatar Oct 09 '19 19:10 gianmichelemariani

I assume on their vanilla engine they have the clear color set to black, but in the extended version it's set to white.

I don't think this is true anymore (or if it ever was). We did however make a change maybe half a year ago where the engine sets the clear color earlier during initialization than it did before.

Note that I can't recall seeing a white flash on startup in projects using DefOS though). @gianmichelemariani are you still experiencing this problem? Which OS?

britzl avatar Jan 24 '21 21:01 britzl

Let me check again. I haven't used defos in a while :)

gianmichelemariani avatar Jan 25 '21 11:01 gianmichelemariani

Apology for the delay. I've tested this, without defos and with all the latest launchscreen storyboard, etc. Version is 1.2.181 beta (but I think it happens in other version too) and it's a debug build.

What is happening here is that on launch of the application, the storyboard part is shows (I have just a white background), then there is a flash to black, and then the render kicks in (I have a clear background color to white and a logo animated).

I'm attaching a video for reference. You'll need to go through it frame by frame to see it (quicktime is good).

https://user-images.githubusercontent.com/46694168/112043808-f6d11f00-8b40-11eb-8245-66d6b8453cd7.mov

What might be causing this?

gianmichelemariani avatar Mar 22 '21 19:03 gianmichelemariani

@gianmichelemariani Do you have any other native extensions enabled?

subsoap avatar Mar 23 '21 16:03 subsoap

Just these 2

Screenshot 2021-03-23 at 17 09 05

gianmichelemariani avatar Mar 23 '21 17:03 gianmichelemariani