mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-06-30 00:50:41 +01:00
Change: De-limit framerate window's framerate
This commit is contained in:
parent
cd4c8ecbf3
commit
ef5cea0e06
@ -399,7 +399,6 @@ struct FramerateWindow : Window {
|
|||||||
{
|
{
|
||||||
const double threshold_good = target * 0.95;
|
const double threshold_good = target * 0.95;
|
||||||
const double threshold_bad = target * 2 / 3;
|
const double threshold_bad = target * 2 / 3;
|
||||||
value = std::min(9999.99, value);
|
|
||||||
this->value = (uint32)(value * 100);
|
this->value = (uint32)(value * 100);
|
||||||
this->strid = (value > threshold_good) ? STR_FRAMERATE_FPS_GOOD : (value < threshold_bad) ? STR_FRAMERATE_FPS_BAD : STR_FRAMERATE_FPS_WARN;
|
this->strid = (value > threshold_good) ? STR_FRAMERATE_FPS_GOOD : (value < threshold_bad) ? STR_FRAMERATE_FPS_BAD : STR_FRAMERATE_FPS_WARN;
|
||||||
}
|
}
|
||||||
@ -408,7 +407,6 @@ struct FramerateWindow : Window {
|
|||||||
{
|
{
|
||||||
const double threshold_good = target / 3;
|
const double threshold_good = target / 3;
|
||||||
const double threshold_bad = target;
|
const double threshold_bad = target;
|
||||||
value = std::min(9999.99, value);
|
|
||||||
this->value = (uint32)(value * 100);
|
this->value = (uint32)(value * 100);
|
||||||
this->strid = (value < threshold_good) ? STR_FRAMERATE_MS_GOOD : (value > threshold_bad) ? STR_FRAMERATE_MS_BAD : STR_FRAMERATE_MS_WARN;
|
this->strid = (value < threshold_good) ? STR_FRAMERATE_MS_GOOD : (value > threshold_bad) ? STR_FRAMERATE_MS_BAD : STR_FRAMERATE_MS_WARN;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user