Skip to main content
gamedev.net
🔒 Locked

White Flash during rendering.

Started by The Lemurs 2 replies 500+ views
Original Post
The Lemurs
The Lemurs
Hey, This problem (not really so bad just strange) has followed me through 2 games and 2 versions of DX. Both games were 2d space shooters so the screen was pretty much balck w/ a starfield. For some reason a short way into the game, the screen would briefly flash white. It only does it once, and it is always towards the beginning of the game, but the actual time between the start of rendering and the flash varies. I think it may be a flash of the window behind the primary surface. Not really a huge problem... just strange. Any ideas? We have assumed control... Edited by - The Lemurs on January 10, 2001 4:02:50 PM Edited by - The Lemurs on January 11, 2001 2:34:42 PM
We have assumed control...
cyberg
cyberg
hello, heum i get the same problem when loading data for my game. i think its because i dont process windows messages while loading. its a couple of seconds to load. just an idea!!!

cyberg
cyberg- cyberg_coder@hotmail.com- http://members.xoom.com/cybergsoft
The Lemurs
The Lemurs
Thanks for your reply Cyberg,

It can''t be quite the same thing, when it happens to me the game is running so I assume all the data is loaded. But all the same it could be something to do with the Windows Message pump. I''m going to take a look into that when I get home.

Thanks again!



We have assumed control...
We have assumed control...
FrigidHelix
FrigidHelix
I had a similar ''problem''. Each time I opened my app, there would be a brief white flash, then it would be drawn black.

In my case, I found that the problem was related to the brush specified when registering the window class. For example, I used to set a white brush, but now, I simply set "wc.hbrBackground" to NULL. This way, when the window is invalidated, Windows doesn''t try to paint it white.

Try setting your background brush to NULL, see if that helps.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.