mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-22 02:20:25 +01:00
Don't regulate Framerate on Pandora
This commit is contained in:
parent
0d4437a1ac
commit
c5148824b2
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
|
// limit current frame rate if neeeded
|
||||||
void LimitFrameRate(void)
|
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
|
// measure passed time for each loop
|
||||||
static CTimerValue tvLast(-1.0f);
|
static CTimerValue tvLast(-1.0f);
|
||||||
CTimerValue tvNow = _pTimer->GetHighPrecisionTimer();
|
CTimerValue tvNow = _pTimer->GetHighPrecisionTimer();
|
||||||
|
@ -299,6 +301,7 @@ void LimitFrameRate(void)
|
||||||
|
|
||||||
// remember new time
|
// remember new time
|
||||||
tvLast = _pTimer->GetHighPrecisionTimer();
|
tvLast = _pTimer->GetHighPrecisionTimer();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// load first demo
|
// load first demo
|
||||||
|
|
Loading…
Reference in New Issue
Block a user