An unwanted white screen flash on start of any .LOVE project

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
D0NM
Party member
Posts: 250
Joined: Mon Feb 08, 2016 10:35 am
Location: Zabuyaki
Contact:

An unwanted white screen flash on start of any .LOVE project

Post by D0NM »

Have you noticed that your .LOVE project window flash white -> black -> white -> black on start?

How to get rid of the flashy stuff?
I just want to have a black screen with a logo w/o unwanted windows flashing.

PS Tested it on Windows10 64bit / AMD

upd: recorded a vid


PS My friend has slightly different flashy effect on his i7 / win7


Guys, do your projects flash on start, too?
Our LÖVE Gamedev blog Zabuyaki (an open source retro beat 'em up game). Twitter: @Zabuyaki.
:joker: LÖVE & Lua Video Lessons in Russian / Видео уроки по LÖVE и Lua :joker:
User avatar
easy82
Party member
Posts: 184
Joined: Thu Apr 18, 2013 10:46 pm
Location: Hungary

Re: An unwanted white screen flash on start of any .LOVE project

Post by easy82 »

I don't have it on linux. Maybe it's the way Windows reacts when a window is created and then destroyed? Somewhere I've read Love2D does some tests when starting.
User avatar
Jasoco
Inner party member
Posts: 3727
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: An unwanted white screen flash on start of any .LOVE project

Post by Jasoco »

Nope. No flashing here. Goes right to the first drawn frame. I'm on OS X.
User avatar
raidho36
Party member
Posts: 2063
Joined: Mon Jun 17, 2013 12:00 pm

Re: An unwanted white screen flash on start of any .LOVE project

Post by raidho36 »

OpenGL window starts out with front buffer filled white. Rendering however produces naturally black background (if you clear canvas alpha to 0 and blit it to output buffer).

I suspect the problem is that there is a lot of things going on before love.load is called. Entire file has to be processed before the framework gets to function, if you define a function to do something it's processed in virtually no time, but if you actually do it that might take a while. Hence the delay between blank OpenGL window pops out and the engine starts rendering into it.
Skeletonxf
Citizen
Posts: 87
Joined: Tue Dec 30, 2014 6:07 pm

Re: An unwanted white screen flash on start of any .LOVE project

Post by Skeletonxf »

By any chance do you have a lot of loading of images/files or modules happening before your first draw frame?

Last time I wanted a splash screen before everything else I delayed all the loading and requiring till after the first draw frame and then let that frame hang while everything loaded.
User avatar
D0NM
Party member
Posts: 250
Joined: Mon Feb 08, 2016 10:35 am
Location: Zabuyaki
Contact:

Re: An unwanted white screen flash on start of any .LOVE project

Post by D0NM »

Thank u guys.
Before posting I've tried to clear the screen in the main.lua love.draw.

The project starts with the white window.
I think it is a windows 10 feature.

Look at this blanky code

Code: Select all

function love.load()
end

function love.draw()
    love.graphics.clear()
    love.graphics.print("HMMMMMMMMMMMMMMMMMM", 10, 0)
end


here is the result

PS My Windows 10 theme is dark.

Also in the 1st video I do use PUSH library that might change the window dimensions.
So we have the 1st flash which happens on an empty project.
And the 2nd flash comes right after the 1st one on changing some window-frame settings.

If you have any ideas, please tell me.
Our LÖVE Gamedev blog Zabuyaki (an open source retro beat 'em up game). Twitter: @Zabuyaki.
:joker: LÖVE & Lua Video Lessons in Russian / Видео уроки по LÖVE и Lua :joker:
User avatar
Positive07
Party member
Posts: 1014
Joined: Sun Aug 12, 2012 4:34 pm
Location: Argentina

Re: An unwanted white screen flash on start of any .LOVE project

Post by Positive07 »

Well this may be your driver/SDL2 fault. If I'm not mistaken there was a similar post here in the forums. I'll search for it and report later
for i, person in ipairs(everybody) do
[tab]if not person.obey then person:setObey(true) end
end
love.system.openURL(github.com/pablomayobre)
User avatar
Smoggert
Prole
Posts: 29
Joined: Thu Nov 10, 2016 11:23 pm

Re: An unwanted white screen flash on start of any .LOVE project

Post by Smoggert »

I've had issues like this on my friends AMD carded W10 aswell. AMD's W10 drivers OpenGL implimentation seems to be the cause of many little bugs/artifacts lately, keep them up to date to prevent as much of this as possible.
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 4 guests