mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-25 11:45:53 +01:00
Don't regulate Framerate on Pandora
This commit is contained in:
parent
88a0ec269b
commit
90e408e02c
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