Original Post
Hi,
i´ve got a SMALL question. I´ve created my app (MSVC++6.0, DX8.1) and a frame counter returns something like 150 fps when i execute app (CTRL+F5) and about 90-100 fps when debugging (? F5).
Why I´ve got these low fps values when all what app doing is computing fps, nothing else. I forum´s topics aroun i read obout 400, 1000 or more fps. What´s wrong!
If anybody knows whers the problem, plz help.
This is my function for calculating fps(I hope it´s right):
void CTEngine::CalcFPS() {
FLOAT fTime = DXUtil_Timer( TIMER_GETABSOLUTETIME );
++m_dwFrames;
// Update statistiky jednou za sekundu
if( fTime - m_fLastTime > 1.0f )
{
m_fFPS = m_dwFrames / (fTime - m_fLastTime);
m_fLastTime = fTime;
m_dwFrames = 0L;
m_fMaxFps = (m_fMaxFps < m_fFPS) ? m_fFPS : m_fMaxFps;
}
}
Thx with help Solomon