nix-servo/fast-servo/linien-gui-do-not-use-opengl.patch
linuswck 30579dfc60 gui: Do not use OpenGL for pyqtgraph
- Fix Painter path exceeds +/-32767 pixels bug
- Plotting with OpenGL has worse performance
    - See pyqtgraph Issue #2227
2025-01-15 18:06:49 +08:00

14 lines
706 B
Diff

diff --git a/linien-gui/linien_gui/ui/plot_widget.py b/linien-gui/linien_gui/ui/plot_widget.py
index f3b81ce..7d865a3 100644
--- a/linien-gui/linien_gui/ui/plot_widget.py
+++ b/linien-gui/linien_gui/ui/plot_widget.py
@@ -40,7 +40,7 @@ from pyqtgraph.Qt import QtCore
# NOTE: this is required for using a pen_width > 1. There is a bug though that causes
# the plot to be way too small. Therefore, we call PlotWidget.resize() after a while
pg.setConfigOptions(
- useOpenGL=True,
+ useOpenGL=False,
# by default, pyqtgraph tries to clean some things up using atexit. This causes
# problems with rpyc objects as their connection is already closed. Therefore, we
# disable this cleanup.