mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 14:21:10 +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) {
|
if (_startFrameTimestamp.time_since_epoch().count() == 0) {
|
||||||
_startFrameTimestamp = _idealFrameTimestamp = p_high_resolution_clock::now();
|
_startFrameTimestamp = _idealFrameTimestamp = p_high_resolution_clock::now();
|
||||||
} else {
|
} else {
|
||||||
{
|
auto timer = _checkTimeTiming.timer();
|
||||||
auto timer = _checkTimeTiming.timer();
|
auto frameDuration = timeFrame();
|
||||||
auto frameDuration = timeFrame();
|
throttle(frameDuration, frame);
|
||||||
throttle(frameDuration, frame);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
auto frameTimer = _frameTiming.timer();
|
auto frameTimer = _frameTiming.timer();
|
||||||
|
|
Loading…
Reference in a new issue