From 23cdf871c1f6b1bb49311d295370314f2669fc14 Mon Sep 17 00:00:00 2001 From: Remco Burema Date: Thu, 7 May 2020 18:55:55 +0200 Subject: [PATCH] Add comments: Why a matrix4x4 and not a sampler1d? part of CURA-7426 --- plugins/SimulationView/SimulationView.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/SimulationView/SimulationView.py b/plugins/SimulationView/SimulationView.py index 7a3fde494d..3d824197ac 100644 --- a/plugins/SimulationView/SimulationView.py +++ b/plugins/SimulationView/SimulationView.py @@ -317,6 +317,8 @@ class SimulationView(CuraView): self.currentLayerNumChanged.emit() def getExtruderOpacities(self) -> Matrix: + # NOTE: Extruder opacities are stored in a matrix for (minor) performance reasons (w.r.t. OpenGL/shaders). + # If more than 16 extruders are called for, this should be converted to a sampler1d. return Matrix(self._extruder_opacity) def setShowTravelMoves(self, show):