mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-12-26 15:44:51 +01:00
Don't regulate Framerate on Pandora
This commit is contained in:
parent
e1921174d4
commit
c6415f84b5
3
Sources/SeriousSam/SeriousSam.cpp
Normal file → Executable file
3
Sources/SeriousSam/SeriousSam.cpp
Normal file → Executable file
|
@ -281,6 +281,8 @@ static void UpdatePauseState(void)
|
|||
// limit current frame rate if neeeded
|
||||
void LimitFrameRate(void)
|
||||
{
|
||||
// do not limit FPS on the Pandora, it's not powerfull enough and doesn't "iconise" games either
|
||||
#ifndef PLATFORM_PANDORA
|
||||
// measure passed time for each loop
|
||||
static CTimerValue tvLast(-1.0f);
|
||||
CTimerValue tvNow = _pTimer->GetHighPrecisionTimer();
|
||||
|
@ -299,6 +301,7 @@ void LimitFrameRate(void)
|
|||
|
||||
// remember new time
|
||||
tvLast = _pTimer->GetHighPrecisionTimer();
|
||||
#endif
|
||||
}
|
||||
|
||||
// load first demo
|
||||
|
|
Loading…
Reference in New Issue
Block a user