From ca4de3e925ea3e1dc89569fcbf4cdfb69f902f06 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Mon, 4 Apr 2022 10:31:01 -0400 Subject: [PATCH] Given in-view rendering, make bars downsample on uppx >= 8 --- piker/ui/_ohlc.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/piker/ui/_ohlc.py b/piker/ui/_ohlc.py index 482d6135..5b593dcb 100644 --- a/piker/ui/_ohlc.py +++ b/piker/ui/_ohlc.py @@ -364,7 +364,7 @@ class BarItems(pg.GraphicsObject): flip_cache = False - x_gt = 2 + x_gt = 8 if self._ds_line: uppx = self._ds_line.x_uppx() else: @@ -404,9 +404,9 @@ class BarItems(pg.GraphicsObject): y=y, x_iv=x_iv, y_iv=y_iv, - view_range=view_range, # hack + view_range=None, # hack ) - profiler('udated ds line') + profiler('updated ds line') if not self._in_ds: # hide bars and show line @@ -426,6 +426,7 @@ class BarItems(pg.GraphicsObject): # stop here since we don't need to update bars path any more # as we delegate to the downsample line with updates. + profiler.finish() return elif (