This commit is contained in:
zminhquanz 2017-06-15 21:43:41 +07:00
parent e2c9fa7f57
commit 7347c28464

View File

@ -405,7 +405,6 @@ static bool IsRunningSlow() {
if (fpsHistoryValid >= 8) {
// Look at only the last 15 samples (starting at the 14th sample behind current.)
int rangeStart = fpsHistoryPos - std::min(fpsHistoryValid, 14);
System_GetPropertyInt(SYSPROP_DISPLAY_REFRESH_RATE) / 1.001f;
double best = 0.0f;
for (int i = rangeStart; i <= fpsHistoryPos; ++i) {
@ -414,7 +413,7 @@ static bool IsRunningSlow() {
best = std::max(fpsHistory[index], best);
}
return best < 58.94;
return best < System_GetPropertyInt(SYSPROP_DISPLAY_REFRESH_RATE) / 1.001f;
}
return false;