forked from Green-Sky/tomato
toxav events
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user