mirror of
https://github.com/lubosz/overte.git
synced 2025-04-16 09:29:16 +02:00
remove double scoping of the frame check timer
This commit is contained in:
parent
88fd42010d
commit
2ac1445683
1 changed files with 3 additions and 5 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue