Go back to caching on all curves

Despite there being artifacts when interacting, the speedups when
cross-hair-ing are just too good to ignore. We can always play with
disabling caches when interaction takes place much like we do with feed
pausing.
storage_cli
Tyler Goodlet 2023-02-09 14:57:00 -05:00
parent 2a4a5588a8
commit a2934b7d18
2 changed files with 3 additions and 3 deletions

View File

@ -410,7 +410,7 @@ class FlattenedOHLC(Curve):
# avoids strange dragging/smearing artifacts when panning # avoids strange dragging/smearing artifacts when panning
# as well as mouse over artefacts when the vlm chart series # as well as mouse over artefacts when the vlm chart series
# is "shorter" then some overlay.. # is "shorter" then some overlay..
cache_mode: int = QGraphicsItem.NoCache # cache_mode: int = QGraphicsItem.NoCache
def draw_last_datum( def draw_last_datum(
self, self,
@ -440,7 +440,7 @@ class StepCurve(Curve):
# avoids strange dragging/smearing artifacts when panning # avoids strange dragging/smearing artifacts when panning
# as well as mouse over artefacts when the vlm chart series # as well as mouse over artefacts when the vlm chart series
# is "shorter" then some overlay.. # is "shorter" then some overlay..
cache_mode: int = QGraphicsItem.NoCache # cache_mode: int = QGraphicsItem.NoCache
def declare_paintables( def declare_paintables(
self, self,

View File

@ -93,7 +93,7 @@ class BarItems(FlowGraphic):
''' '''
# XXX: causes this weird jitter bug when click-drag panning # XXX: causes this weird jitter bug when click-drag panning
# where the path curve will awkwardly flicker back and forth? # where the path curve will awkwardly flicker back and forth?
cache_mode: int = QGraphicsItem.NoCache # cache_mode: int = QGraphicsItem.NoCache
def __init__( def __init__(
self, self,