Mercurial > code > home > repos > light9
comparison lib/background_loop.py @ 2218:436a1fdbfe4a
comment
author | drewp@bigasterisk.com |
---|---|
date | Tue, 23 May 2023 15:52:26 -0700 |
parents | acf1b68d031a |
children |
comparison
equal
deleted
inserted
replaced
2217:e22c7d15a504 | 2218:436a1fdbfe4a |
---|---|
109 await asyncio.sleep(self.extra_sleep_on_error) | 109 await asyncio.sleep(self.extra_sleep_on_error) |
110 # todo: something that reveals error ratio | 110 # todo: something that reveals error ratio |
111 return result | 111 return result |
112 | 112 |
113 def _updateFps(self, now: float): | 113 def _updateFps(self, now: float): |
114 # not sure i even want this- it's redundant with some metrics code | |
114 if self.fps is None: | 115 if self.fps is None: |
115 return | 116 return |
116 if now < self.lastFpsLog + 5: | 117 if now < self.lastFpsLog + 5: |
117 return | 118 return |
118 d = self.fps() | 119 d = self.fps() |