I am writing a multi-window MFC application in VC++ 6.0 that has a problem.
Problem Details
1) Rendering in small windows works well but if the window is maximized (or expanded beyond a certain size) the rendering is incomplete:
- some of the polygons composing a surface become visible (black lines of the polygons streak the surface)
-the rendering speed slows way down (redraws take a long time)
2) This problem only occurs when the scene being rendered is sufficiently complex(when using solid polygon mode and the viewport is large).
3)If a window that exhibits the problem is resized back to a smaller size, the problem (black polygon lines, slow rendering speed) does not go away.
4)If a single window is being rendered well (at a size just below the critical size that triggers the problem) and a new window is created, the new window will have the problem (although it wouldn't if the first window were smaller).
Environment Details
I am using NT 4.0 on a 400MHz computer with 64MB and a (ugh) 4MB ATI 3D Rage Pro graphics card.
I have used the standard document/view architecture and have followed examples of how to use OpenGL with MFC.
How can I fix this problem that renders large, complex scenes incompletely?