12-06-2004, 05:58 AM
Hi all!!
I'm working on a MDI app wich one of the windows is an OpenGL interface. Im doing the redraw stuff in the wm_paint but unless I don't make an InvalidateRect(); the scene doesn't refresh.
The problem is that, by doing InvalidateRect, the cpu usage goes up to almost 99%.
Is there any other way of doing this without the cpu usage?
Thanks in advance!
I'm working on a MDI app wich one of the windows is an OpenGL interface. Im doing the redraw stuff in the wm_paint but unless I don't make an InvalidateRect(); the scene doesn't refresh.
The problem is that, by doing InvalidateRect, the cpu usage goes up to almost 99%.
Is there any other way of doing this without the cpu usage?
Thanks in advance!