From 50b86247af4dcba1e1bd1f9976f5d2501a70abd9 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Sat, 23 Apr 2022 17:22:02 -0400 Subject: [PATCH] Always set coords cache on curves --- piker/ui/_curve.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/piker/ui/_curve.py b/piker/ui/_curve.py index 4b87d117..0befe454 100644 --- a/piker/ui/_curve.py +++ b/piker/ui/_curve.py @@ -188,11 +188,7 @@ class FastAppendCurve(pg.GraphicsObject): # only thing drawn is the "last" line segment which can # have a weird artifact where it won't be fully drawn to its # endpoint (something we saw on trade rate curves) - self.setCacheMode( - QGraphicsItem.DeviceCoordinateCache - ) - - # self.update() + self.setCacheMode(QGraphicsItem.DeviceCoordinateCache) # TODO: probably stick this in a new parent # type which will contain our own version of @@ -423,6 +419,9 @@ class FastAppendCurve(pg.GraphicsObject): x_out, y_out, ) + # self.disable_cache() + # flip_cache = True + # TODO: numba this bish profiler('generated step arrays') @@ -514,6 +513,9 @@ class FastAppendCurve(pg.GraphicsObject): new_x = new_x[1:] new_y = new_y[1:] + # self.disable_cache() + # flip_cache = True + profiler('generated step data') else: