History

Amend comment that was not a busy wait

Zach Pomerantz committed 10 years ago

Commit 7db082b1 parent 173d2a51 file · +1 −1Browse files

Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 1 file). Show all

Unified · Split

libraries/script-engine/src/ScriptEngine.cpp+1−1
@@ -725,7 +725,7 @@ void ScriptEngine::run() { · 724 unmodified lines
725 725
726 qint64 lastUpdate = usecTimestampNow();726 qint64 lastUpdate = usecTimestampNow();
727 727
728 // TODO: Integrate this with signals/slots instead of this busy wait728 // TODO: Integrate this with signals/slots instead of reimplementing throttling for ScriptEngine
729 while (!_isFinished) {729 while (!_isFinished) {
730 // Throttle to SCRIPT_FPS730 // Throttle to SCRIPT_FPS
731 const std::chrono::microseconds FRAME_DURATION(USECS_PER_SECOND / SCRIPT_FPS + 1);731 const std::chrono::microseconds FRAME_DURATION(USECS_PER_SECOND / SCRIPT_FPS + 1);