remove double scoping of the frame check timer

This commit is contained in:
Stephen Birarda 2018-09-24 11:48:34 -07:00
parent 88fd42010d
commit 2ac1445683

View file

@ -393,11 +393,9 @@ void AudioMixer::start() {
if (_startFrameTimestamp.time_since_epoch().count() == 0) {
_startFrameTimestamp = _idealFrameTimestamp = p_high_resolution_clock::now();
} else {
{
auto timer = _checkTimeTiming.timer();
auto frameDuration = timeFrame();
throttle(frameDuration, frame);
}
auto timer = _checkTimeTiming.timer();
auto frameDuration = timeFrame();
throttle(frameDuration, frame);
}
auto frameTimer = _frameTiming.timer();