From 2a06dc997f965211169c7365071d8ef4cbf2542d Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Wed, 7 Sep 2022 16:12:57 -0400 Subject: [PATCH] Use pixel caching on our level lines --- piker/ui/_lines.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/piker/ui/_lines.py b/piker/ui/_lines.py index 697e889f..1e20958c 100644 --- a/piker/ui/_lines.py +++ b/piker/ui/_lines.py @@ -122,6 +122,9 @@ class LevelLine(pg.InfiniteLine): self._y_incr_mult = 1 / chart.linked.symbol.tick_size self._right_end_sc: float = 0 + # use px caching + self.setCacheMode(QtWidgets.QGraphicsItem.DeviceCoordinateCache) + def txt_offsets(self) -> tuple[int, int]: return 0, 0