OpenGL drawing
-
I have an OpenGL application app based on MFC. I have a requirement that I need to redraw the whole scene every second(some sort of animation). When I use the standard method of invalidating the client area every second, the CPU usage is very high and my app does not respond to any other commands. Can someone suggest any better ideas? Thanks
-
I have an OpenGL application app based on MFC. I have a requirement that I need to redraw the whole scene every second(some sort of animation). When I use the standard method of invalidating the client area every second, the CPU usage is very high and my app does not respond to any other commands. Can someone suggest any better ideas? Thanks
Only redraw the scene when something changes. If you still need a frame every second, do a ::BitBlt() each second. Michael S. Scherotter Lead Software Architect Tartus Development, Inc.