Compare commits
No commits in common. "7d0e5c80bd1bffa2251cd8f9e8b625c7f0d74c30" and "b0173f6d68f5f0940c7039d66aaab9c1c3056a90" have entirely different histories.
7d0e5c80bd
...
b0173f6d68
2
external/solanaceae_message3
vendored
2
external/solanaceae_message3
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 20af7dd705fe1be68f7678292125620d48aa278b
|
Subproject commit ab282235b5e84910f6661714b0883a57f45041dd
|
2
external/solanaceae_plugin
vendored
2
external/solanaceae_plugin
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 82cfb6d4920a2d6eb19e3f3560b20ec281a5fa81
|
Subproject commit 17ffaee013d97412eab2395cb9555ca3213c5302
|
10
src/main.cpp
10
src/main.cpp
@ -178,13 +178,9 @@ int main(int argc, char** argv) {
|
|||||||
//)
|
//)
|
||||||
//));
|
//));
|
||||||
|
|
||||||
const float min_delay =
|
const float min_delay = std::min<float>(
|
||||||
std::min<float>(
|
screen->nextTick() - time_delta_tick,
|
||||||
std::min<float>(
|
screen->nextRender() - time_delta_render
|
||||||
screen->nextTick() - time_delta_tick,
|
|
||||||
screen->nextRender() - time_delta_render
|
|
||||||
),
|
|
||||||
0.25f // dont sleep too long
|
|
||||||
) * 1000.f;
|
) * 1000.f;
|
||||||
|
|
||||||
if (min_delay > 0.f) {
|
if (min_delay > 0.f) {
|
||||||
|
@ -228,7 +228,7 @@ Screen* MainScreen::render(float time_delta, bool&) {
|
|||||||
_window_hidden
|
_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 {
|
} else {
|
||||||
_render_interval = std::min<float>(1.f/60.f, pm_interval);
|
_render_interval = std::min<float>(1.f/60.f, pm_interval);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user