Compare commits

..

No commits in common. "7d0e5c80bd1bffa2251cd8f9e8b625c7f0d74c30" and "b0173f6d68f5f0940c7039d66aaab9c1c3056a90" have entirely different histories.

4 changed files with 6 additions and 10 deletions

@ -1 +1 @@
Subproject commit 20af7dd705fe1be68f7678292125620d48aa278b
Subproject commit ab282235b5e84910f6661714b0883a57f45041dd

@ -1 +1 @@
Subproject commit 82cfb6d4920a2d6eb19e3f3560b20ec281a5fa81
Subproject commit 17ffaee013d97412eab2395cb9555ca3213c5302

View File

@ -178,13 +178,9 @@ int main(int argc, char** argv) {
//)
//));
const float min_delay =
std::min<float>(
std::min<float>(
const float min_delay = std::min<float>(
screen->nextTick() - time_delta_tick,
screen->nextRender() - time_delta_render
),
0.25f // dont sleep too long
) * 1000.f;
if (min_delay > 0.f) {

View File

@ -228,7 +228,7 @@ Screen* MainScreen::render(float time_delta, bool&) {
_window_hidden
)
) {
_render_interval = std::min<float>(1.f/1.f, pm_interval);
_render_interval = std::min<float>(1.f/4.f, pm_interval);
} else {
_render_interval = std::min<float>(1.f/60.f, pm_interval);
}