Try supporting reuse of path allocation
parent
60b1c53d20
commit
c745c9801f
|
@ -376,7 +376,6 @@ class FastAppendCurve(pg.PlotCurveItem):
|
|||
self.xData = None ## raw values
|
||||
self.yData = None
|
||||
self._renderSegmentList = None
|
||||
# self.path = None
|
||||
self.fillPath = None
|
||||
self._fillPathList = None
|
||||
self._mouseShape = None
|
||||
|
@ -389,6 +388,10 @@ class FastAppendCurve(pg.PlotCurveItem):
|
|||
self.path.clear()
|
||||
self._redraw = True
|
||||
|
||||
# XXX: if not trying to leverage `.reserve()` allocs
|
||||
# then you might as well create a new one..
|
||||
# self.path = None
|
||||
|
||||
def disable_cache(self) -> None:
|
||||
'''
|
||||
Disable the use of the pixel coordinate cache and trigger a geo event.
|
||||
|
|
Loading…
Reference in New Issue