set options to make paintEvents faster; does not much for RAM usage (closes #104)

This commit is contained in:
Dominik Demuth 2023-11-29 18:01:40 +01:00
parent 8a6c909c3e
commit 0c7ca0b9ba

View File

@ -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]