mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-07 08:03:30 +08:00
Latest changes from private.
This commit is contained in:
parent
9edaaf7d68
commit
5e9d38176e
@ -59,9 +59,8 @@ def setup_asyncio() -> asyncio.AbstractEventLoop:
|
|||||||
_asyncio_event_loop.run_forever()
|
_asyncio_event_loop.run_forever()
|
||||||
endtime = time.monotonic()
|
endtime = time.monotonic()
|
||||||
|
|
||||||
# We'd like to keep the app running at a smooth 120hz, so
|
# Let's aim to have nothing take longer than 1/120 of a second.
|
||||||
# complain if we're taking more than half that time per update.
|
warn_time = 1.0 / 120
|
||||||
warn_time = 1.0 / 240
|
|
||||||
duration = endtime - starttime
|
duration = endtime - starttime
|
||||||
if duration > warn_time:
|
if duration > warn_time:
|
||||||
logging.warning('Asyncio loop step took %.4fs; ideal max is %.4f',
|
logging.warning('Asyncio loop step took %.4fs; ideal max is %.4f',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user