Always set coords cache on curves
parent
f68b8c5987
commit
a6bd29c1d1
|
@ -188,11 +188,7 @@ class FastAppendCurve(pg.GraphicsObject):
|
||||||
# only thing drawn is the "last" line segment which can
|
# only thing drawn is the "last" line segment which can
|
||||||
# have a weird artifact where it won't be fully drawn to its
|
# have a weird artifact where it won't be fully drawn to its
|
||||||
# endpoint (something we saw on trade rate curves)
|
# endpoint (something we saw on trade rate curves)
|
||||||
self.setCacheMode(
|
self.setCacheMode(QGraphicsItem.DeviceCoordinateCache)
|
||||||
QGraphicsItem.DeviceCoordinateCache
|
|
||||||
)
|
|
||||||
|
|
||||||
# self.update()
|
|
||||||
|
|
||||||
# TODO: probably stick this in a new parent
|
# TODO: probably stick this in a new parent
|
||||||
# type which will contain our own version of
|
# type which will contain our own version of
|
||||||
|
@ -423,6 +419,9 @@ class FastAppendCurve(pg.GraphicsObject):
|
||||||
x_out,
|
x_out,
|
||||||
y_out,
|
y_out,
|
||||||
)
|
)
|
||||||
|
# self.disable_cache()
|
||||||
|
# flip_cache = True
|
||||||
|
|
||||||
# TODO: numba this bish
|
# TODO: numba this bish
|
||||||
profiler('generated step arrays')
|
profiler('generated step arrays')
|
||||||
|
|
||||||
|
@ -514,6 +513,9 @@ class FastAppendCurve(pg.GraphicsObject):
|
||||||
new_x = new_x[1:]
|
new_x = new_x[1:]
|
||||||
new_y = new_y[1:]
|
new_y = new_y[1:]
|
||||||
|
|
||||||
|
# self.disable_cache()
|
||||||
|
# flip_cache = True
|
||||||
|
|
||||||
profiler('generated step data')
|
profiler('generated step data')
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue