Condense frame rates

This commit is contained in:
EmosewaMC
2022-12-15 19:55:07 -08:00
parent e1cc25759e
commit 4775dbf27f
7 changed files with 24 additions and 34 deletions

View File

@@ -373,7 +373,7 @@ int main(int argc, char** argv) {
}
}
t += std::chrono::milliseconds(highFrameRate);
t += std::chrono::milliseconds(highFrameDelta);
std::this_thread::sleep_until(t);
}
return FinalizeShutdown(EXIT_SUCCESS);
@@ -876,7 +876,7 @@ void ShutdownSequence(int signal) {
break;
}
t += std::chrono::milliseconds(highFrameRate);
t += std::chrono::milliseconds(highFrameDelta);
std::this_thread::sleep_until(t);
ticks++;