Hi guys ,
i have a very particular issue…
i have directx classes for rendering to a window. I have created a GUI with MFC c++ and integrated my DirectX classes with it. I am initialising on OnInitDialog function and then doing a rendering loop at OnIdle function. I have over ridden WindowProc function. It is a model dialog.
The problem is, irrespective of whatever the VSYNC state of my directx component is(i know the present flags of swap chain btw), i am always getting 60 fps frame rate. when i minimise the window the frame rates unlocks and becomes very high. On maximise again it again drops to 60 fps.
A picture control is my rendering area which is a frame.
rendering starts when user click on a button.
so how to unlock frame rate in MFC OnIdle.