From 0770a39125eab777b206619636716074f6fb2aa2 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Tue, 26 Apr 2022 09:28:09 -0400 Subject: [PATCH] Only do curve appends on low uppx levels --- piker/ui/_display.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/piker/ui/_display.py b/piker/ui/_display.py index b82d1253..6c8bdddf 100644 --- a/piker/ui/_display.py +++ b/piker/ui/_display.py @@ -331,7 +331,7 @@ def graphics_update_cycle( vars = ds.vars tick_margin = vars['tick_margin'] - update_uppx = 6 + update_uppx = 16 for sym, quote in ds.quotes.items(): @@ -392,7 +392,8 @@ def graphics_update_cycle( if ( ( - xpx < update_uppx or i_diff > 0 + xpx < update_uppx + or i_diff > 0 and liv ) or trigger_all @@ -401,7 +402,6 @@ def graphics_update_cycle( # once the $vlm is up? vlm_chart.update_graphics_from_flow( 'volume', - # UGGGh, see ``maxmin()`` impl in `._fsp` for # the overlayed plotitems... we need a better # bay to invoke a maxmin per overlay.. @@ -435,6 +435,7 @@ def graphics_update_cycle( flow, curve_name, array_key=curve_name, + do_append=xpx < update_uppx, ) # is this even doing anything? # (pretty sure it's the real-time @@ -496,6 +497,7 @@ def graphics_update_cycle( ): chart.update_graphics_from_flow( chart.name, + do_append=xpx < update_uppx, ) # iterate in FIFO order per tick-frame