toxav events

This commit is contained in:
2024-09-10 09:21:11 +02:00
parent 106c8e8403
commit a100eaae82
3 changed files with 281 additions and 1 deletions

View File

@@ -476,6 +476,11 @@ Screen* MainScreen::render(float time_delta, bool&) {
Screen* MainScreen::tick(float time_delta, bool& quit) {
quit = !tc.iterate(time_delta); // compute
#if TOMATO_TOX_AV
tav.toxavIterate();
const float av_interval = tav.toxavIterationInterval()/1000.f;
#endif
tcm.iterate(time_delta); // compute
const float fo_interval = tffom.tick(time_delta);
@@ -510,6 +515,13 @@ Screen* MainScreen::tick(float time_delta, bool& quit) {
fo_interval
);
#if TOMATO_TOX_AV
_min_tick_interval = std::min<float>(
_min_tick_interval,
av_interval
);
#endif
//std::cout << "MS: min tick interval: " << _min_tick_interval << "\n";
switch (_compute_perf_mode) {