hi guys. i am stuck somewhere and i need some help.I am working on the Pocket PC platform.
I am trying to measure the time it takes to draw a frame and i thought of using CGapiTimer to do that.
I initialize the timer using StartTimer in my initialization. Then i use GetActualFrameTime to get the time it took to draw a frame. This will not work. It will only work if i add WaitForNextFrame at the end of drawing each frame.
The problem is that i dont want it to wait. I want to draw as many frames as the device can since i want to use a dynamic frame rate control.
Is there a way to utilize timers and measure the frame draw time without using WaitForNextFrame which adds a delay?
I know i could opt using performance counters but if CGapiTimer could help it would be cleaner.
Will apreciate any help.
Thanks
I am trying to measure the time it takes to draw a frame and i thought of using CGapiTimer to do that.
I initialize the timer using StartTimer in my initialization. Then i use GetActualFrameTime to get the time it took to draw a frame. This will not work. It will only work if i add WaitForNextFrame at the end of drawing each frame.
The problem is that i dont want it to wait. I want to draw as many frames as the device can since i want to use a dynamic frame rate control.
Is there a way to utilize timers and measure the frame draw time without using WaitForNextFrame which adds a delay?
I know i could opt using performance counters but if CGapiTimer could help it would be cleaner.
Will apreciate any help.
Thanks