diff options
author | George Marques <george@gmarqu.es> | 2018-06-20 14:00:19 -0300 |
---|---|---|
committer | George Marques <george@gmarqu.es> | 2018-06-20 14:00:19 -0300 |
commit | 5d61cdf5b5d60c0fc13fe18628832f2e69d24132 (patch) | |
tree | 0910f490d0f3ce8cb0d85596f078f06c4e2c9e01 /servers | |
parent | a9acdd84b7a6fd074f21d500a64976326f6cbb67 (diff) |
Remove audio latency print
Diffstat (limited to 'servers')
-rw-r--r-- | servers/audio_server.cpp | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/servers/audio_server.cpp b/servers/audio_server.cpp index 8ee43ddc32..f2df7119e7 100644 --- a/servers/audio_server.cpp +++ b/servers/audio_server.cpp @@ -234,29 +234,6 @@ void AudioServer::_driver_process(int p_frames, int32_t *p_buffer) { todo -= to_copy; to_mix -= to_copy; } - -#ifdef DEBUG_ENABLED - if (OS::get_singleton() && OS::get_singleton()->is_stdout_verbose()) { - static uint64_t first_ticks = 0; - static uint64_t last_ticks = 0; - static uint64_t ticks = 0; - static int count = 0; - static int total = 0; - - ticks = OS::get_singleton()->get_ticks_msec(); - if ((ticks - first_ticks) > 10 * 1000 && count > 0) { - print_line("Audio Driver " + String(AudioDriver::get_singleton()->get_name()) + " average latency: " + itos(total / count) + "ms (frame=" + itos(p_frames) + ")"); - first_ticks = ticks; - total = 0; - count = 0; - } - - total += ticks - last_ticks; - count++; - - last_ticks = ticks; - } -#endif } void AudioServer::_mix_step() { |