Try supporting reuse of path allocation
parent
88a7314bd0
commit
3a6c5a2fbd
|
@ -376,7 +376,6 @@ class FastAppendCurve(pg.PlotCurveItem):
|
||||||
self.xData = None ## raw values
|
self.xData = None ## raw values
|
||||||
self.yData = None
|
self.yData = None
|
||||||
self._renderSegmentList = None
|
self._renderSegmentList = None
|
||||||
# self.path = None
|
|
||||||
self.fillPath = None
|
self.fillPath = None
|
||||||
self._fillPathList = None
|
self._fillPathList = None
|
||||||
self._mouseShape = None
|
self._mouseShape = None
|
||||||
|
@ -389,6 +388,10 @@ class FastAppendCurve(pg.PlotCurveItem):
|
||||||
self.path.clear()
|
self.path.clear()
|
||||||
self._redraw = True
|
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:
|
def disable_cache(self) -> None:
|
||||||
'''
|
'''
|
||||||
Disable the use of the pixel coordinate cache and trigger a geo event.
|
Disable the use of the pixel coordinate cache and trigger a geo event.
|
||||||
|
|
Loading…
Reference in New Issue