stop ignoring mfs interval and sort after

This commit is contained in:
Green Sky 2024-02-26 01:22:49 +01:00
parent 461a4f1aa7
commit 2e3c779bec
No known key found for this signature in database

View File

@ -427,8 +427,8 @@ Screen* MainScreen::tick(float time_delta, bool& quit) {
tdch.tick(time_delta); // compute tdch.tick(time_delta); // compute
mts.iterate(); // compute const float mfs_interval = mfs.tick(time_delta);
mfs.tick(time_delta); // TODO: use delta mts.iterate(); // compute (after mfs)
_min_tick_interval = std::min<float>( _min_tick_interval = std::min<float>(
// HACK: pow by 1.6 to increase 50 -> ~500 (~522) // HACK: pow by 1.6 to increase 50 -> ~500 (~522)
@ -440,6 +440,10 @@ Screen* MainScreen::tick(float time_delta, bool& quit) {
_min_tick_interval, _min_tick_interval,
fo_interval fo_interval
); );
_min_tick_interval = std::min<float>(
_min_tick_interval,
mfs_interval
);
//std::cout << "MS: min tick interval: " << _min_tick_interval << "\n"; //std::cout << "MS: min tick interval: " << _min_tick_interval << "\n";