frames per second wrong?

Started by
3 comments, last by lem77 18 years, 8 months ago
In my app I am using a class to determine FPS ( think I stole it from GameTutorials). I´m running on a "naked" application like 75FPS. When I was using Ogre, I had FPS like 400 (naked app). Is there something wrong?
Advertisement
We'd have to see your code to say anything...
----------------------------------------------------"Plant a tree. Remove a Bush" -A bumper sticker I saw.
Quote:Original post by tHiSiSbOb
We'd have to see your code to say anything...


As I said, nothing special ...
	void CFrameTime::Update(void)	{		m_fCurrentTime = (GLfloat)SDL_GetTicks();		m_fDeltaTime = m_fCurrentTime - m_fFrameTime;		m_fFrameTime = m_fCurrentTime;		++m_fFPSCounter;		if ( (m_fCurrentTime - m_fLastTime) > 1000.0f )		{			m_fLastTime = m_fCurrentTime;			m_fFPS = m_fFPSCounter;			m_fFPSCounter = 0.0f;		}	}
Quote:Original post by lem77
I´m running on a "naked" application like 75FPS.

Seems like your framerate is limited by your monitor refresh rate. You can try and disable the vertical sync via your graphics driver panel.
thanx :) Now I understand, why Ogre uses this weird FrameListener construct ...

This topic is closed to new replies.

Advertisement