mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 18:26:26 +02:00
Amend comment that was not a busy wait
This commit is contained in:
parent
173d2a590c
commit
7db082b915
1 changed files with 1 additions and 1 deletions
|
@ -725,7 +725,7 @@ void ScriptEngine::run() {
|
||||||
|
|
||||||
qint64 lastUpdate = usecTimestampNow();
|
qint64 lastUpdate = usecTimestampNow();
|
||||||
|
|
||||||
// TODO: Integrate this with signals/slots instead of this busy wait
|
// TODO: Integrate this with signals/slots instead of reimplementing throttling for ScriptEngine
|
||||||
while (!_isFinished) {
|
while (!_isFinished) {
|
||||||
// Throttle to SCRIPT_FPS
|
// Throttle to SCRIPT_FPS
|
||||||
const std::chrono::microseconds FRAME_DURATION(USECS_PER_SECOND / SCRIPT_FPS + 1);
|
const std::chrono::microseconds FRAME_DURATION(USECS_PER_SECOND / SCRIPT_FPS + 1);
|
||||||
|
|
Loading…
Reference in a new issue