From 5e9d38176e7f610923c5a115b60ae1b42a5d23c6 Mon Sep 17 00:00:00 2001 From: Eric Froemling Date: Tue, 5 Jul 2022 15:22:20 -0700 Subject: [PATCH] Latest changes from private. --- assets/src/ba_data/python/ba/_asyncio.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/assets/src/ba_data/python/ba/_asyncio.py b/assets/src/ba_data/python/ba/_asyncio.py index 2705d284..c18dd10b 100644 --- a/assets/src/ba_data/python/ba/_asyncio.py +++ b/assets/src/ba_data/python/ba/_asyncio.py @@ -59,9 +59,8 @@ def setup_asyncio() -> asyncio.AbstractEventLoop: _asyncio_event_loop.run_forever() endtime = time.monotonic() - # We'd like to keep the app running at a smooth 120hz, so - # complain if we're taking more than half that time per update. - warn_time = 1.0 / 240 + # Let's aim to have nothing take longer than 1/120 of a second. + warn_time = 1.0 / 120 duration = endtime - starttime if duration > warn_time: logging.warning('Asyncio loop step took %.4fs; ideal max is %.4f',