No clear screen at startup

Started by
0 comments, last by jollyjeffers 18 years ago
Hey I noticed that the screen isnt completely black at the startup of my DX app. A picture of the screensaver can be seen for less than a sec for example (if it was on prior to start) etc. Maybe I clear the screen too late? Or I forget to do something? //IlyaZ
Advertisement
This, in my experience, is more of a driver problem than something wrong with your application. Sometimes changing the presentation parameters (D3DPRESENT_PARAMETERS struct passed to CreateDevice()) can stop it.

Essentially what you're seeing is a "ghost" image of the previous contents of the video memory - the driver/hardware has allocated your application's swapchain the same (or nearly the same) piece of memory that your screensaver was last using. For performance reasons theres no need to zero-out a block of memory once it's been declared as unused/released.

hth
Jack

<hr align="left" width="25%" />
Jack Hoxley <small>[</small><small> Forum FAQ | Revised FAQ | MVP Profile | Developer Journal ]</small>

This topic is closed to new replies.

Advertisement