Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

The Lemurs

White Flash during rendering.

This topic is 6425 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
Advertisement
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

Share this post


Link to post
Share on other sites
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...

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!