Flickering even though using backbuffer(DirectDraw)
I have a program I made that uses DirectDraw, I've created a surface with a back buffer and I directly manipulate the back buffers memory, then use flip on the primary surface, even though I'm doing this the screen still flickers a few seconds after start up, then the flickering becomes much less frequent (every 10 seconds or so compared to multiple times a second), this flickering is the entire screen going black, even though my colour blt that I use to clear the back buffer is called before I lock it, and I flip right after I unlock... can someone shed some light onto the reason for this?
In C, you merely shoot yourself in the foot.
In C++, you accidentally create a dozen instances of yourself and shoot them all in the foot. Providing emergency medical care is impossible, because you can't tell which are bitwise copies and which are just pointing at others and saying, "That's me, over there."