Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusandra committed Jun 23, 2024
1 parent d895deb commit d87f9bd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions frameos/src/frameos/runner.nim
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,7 @@ proc startRenderLoop*(self: RunnerThread): Future[void] {.async.} =
self.triggerRenderNext = false
continue

# No sleep duration provided by the scene, calculate based on the interval

# If no sleep duration provided by the scene, calculate based on the interval
sleepDuration = if nextSleep >= 0: nextSleep * 1000
else: max((interval - (epochTime() - timer)) * 1000, 0.1)
self.logger.log(%*{"event": "sleep", "ms": round(sleepDuration, 3)})
Expand Down

0 comments on commit d87f9bd

Please sign in to comment.