From b1dd24d1f70305bf39fe1420eafc6ad7041fa234 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Wed, 16 Feb 2022 12:20:17 -0500 Subject: [PATCH] Only throttle warn on rate >= display rate --- piker/ui/_display.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/piker/ui/_display.py b/piker/ui/_display.py index 3bfd327a..14e1c2c7 100644 --- a/piker/ui/_display.py +++ b/piker/ui/_display.py @@ -131,6 +131,7 @@ async def graphics_update_loop( # of copying it from last bar's close # - 1-5 sec bar lookback-autocorrection like tws does? # (would require a background history checker task) + display_rate = linked.godwidget.window.current_screen().refreshRate() chart = linked.chart @@ -215,7 +216,8 @@ async def graphics_update_loop( # in the absolute worst case we shouldn't see more then # twice the expected throttle rate right!? - and quote_rate >= _quote_throttle_rate * 1.5 + # and quote_rate >= _quote_throttle_rate * 2 + and quote_rate >= display_rate ): log.warning(f'High quote rate {symbol.key}: {quote_rate}')