Flickering when using scissor test
In the application I''m writing (using some old NeHe basecode), there is a large portion of the screen that stays static for the most part, while the rest of the screen is constantly animated. To keep from redrawing the static portion every frame, I decided to make a boolean variable to determine whether the static portion had changed or not. If so, the scissor region is set to the entire screen, and the whole scene is rendered. If not, then the scissor region is set to the animated part of the screen, and only it is rendered. This works fine in windowed mode, but when i move to full screen mode, there is horrible flicker in the static portion. The screen flickers between the actual scene that I want to view, and a picture of VC++. I''m thinking that using double buffering may be causing this, but I''m not sure how to fix it. Is there some way to sort of push the static portion of the back buffer into a stack so it can be retrieved every frame, or is there something else I can do to get around this? I know I probably haven''t explained it well, if you want me to explain it further, then I will. Thank you.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement