From 0c7ca0b9ba3e61a75acf0f3c670cd4586519851e Mon Sep 17 00:00:00 2001 From: Dominik Demuth Date: Wed, 29 Nov 2023 18:01:40 +0100 Subject: [PATCH] set options to make paintEvents faster; does not much for RAM usage (closes #104) --- src/gui_qt/graphs/graphwindow.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gui_qt/graphs/graphwindow.py b/src/gui_qt/graphs/graphwindow.py index 7f8356a..94cbff4 100644 --- a/src/gui_qt/graphs/graphwindow.py +++ b/src/gui_qt/graphs/graphwindow.py @@ -55,6 +55,11 @@ class QGraphWindow(QtWidgets.QGraphicsView, Ui_GraphWindow): self._external_items = [] self.closable = True + # desperate attempts to improve memory usage during paintEvents + self.graphic.setAntialiasing(False) + self.plotItem.setDownsampling(auto=True) + self.plotItem.setClipToView(True) + self._block = False self.log = [False, False]