Compare commits
3 Commits
b0173f6d68
...
7d0e5c80bd
Author | SHA1 | Date | |
---|---|---|---|
7d0e5c80bd | |||
f716ad9dd1 | |||
671772a20e |
2
external/solanaceae_message3
vendored
2
external/solanaceae_message3
vendored
@ -1 +1 @@
|
|||||||
Subproject commit ab282235b5e84910f6661714b0883a57f45041dd
|
Subproject commit 20af7dd705fe1be68f7678292125620d48aa278b
|
2
external/solanaceae_plugin
vendored
2
external/solanaceae_plugin
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 17ffaee013d97412eab2395cb9555ca3213c5302
|
Subproject commit 82cfb6d4920a2d6eb19e3f3560b20ec281a5fa81
|
@ -178,9 +178,13 @@ int main(int argc, char** argv) {
|
|||||||
//)
|
//)
|
||||||
//));
|
//));
|
||||||
|
|
||||||
const float min_delay = std::min<float>(
|
const float min_delay =
|
||||||
|
std::min<float>(
|
||||||
|
std::min<float>(
|
||||||
screen->nextTick() - time_delta_tick,
|
screen->nextTick() - time_delta_tick,
|
||||||
screen->nextRender() - time_delta_render
|
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/4.f, pm_interval);
|
_render_interval = std::min<float>(1.f/1.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