respect mcd interval
This commit is contained in:
parent
8b3af55834
commit
949929f490
@ -313,13 +313,17 @@ int main(int argc, char** argv) {
|
||||
|
||||
mc.iterate(time_delta_tick);
|
||||
|
||||
mcd.iterate(time_delta_tick);
|
||||
const float mcd_interval = mcd.iterate(time_delta_tick);
|
||||
const float tox_interval = std::pow(tc.toxIterationInterval(), 1.6f) / 1000.f;
|
||||
|
||||
last_min_interval = std::min<float>(
|
||||
tox_interval,
|
||||
pm_interval
|
||||
);
|
||||
last_min_interval = std::min<float>(
|
||||
last_min_interval,
|
||||
mcd_interval
|
||||
);
|
||||
|
||||
// dont sleep and do an extra check
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user