set options to make paintEvents faster; does not much for RAM usage (closes #104)
This commit is contained in:
parent
8a6c909c3e
commit
0c7ca0b9ba
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user