From 591fc55479a98497ebb405926dc7e58c0f9722a8 Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Mon, 23 Sep 2024 15:38:12 +0200 Subject: [PATCH] clearifying comments --- src/nodes/QskFillNode.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/nodes/QskFillNode.h b/src/nodes/QskFillNode.h index 2630bb0b..3bd8664b 100644 --- a/src/nodes/QskFillNode.h +++ b/src/nodes/QskFillNode.h @@ -36,15 +36,15 @@ class QSK_EXPORT QskFillNode : public QSGGeometryNode Colors might be defined in the material ( QskGradientMaterial, QSGFlatColorMaterial ) or attached to each point ( QSGVertexColorMaterial ). - The main advantage of using colored points is, that the material becomes - independent of the coloring and the scene graph is able to batch the nodes + Having colored points makes the material independent of the coloring + and the scene graph is able to batch the geometries ( https://doc.qt.io/qt-6/qtquick-visualcanvas-scenegraph.html ). - However adding the color information for each point increases the memory - footprint. + Having the colors in the material needs less memory and avoids updates + of the geometry only because of recoloring. The default setting is to use colored points where possible. Note, that - this is what is also done in the Qt/Quick code. + this is what is also done in the Qt/Quick classes. */ PreferColoredGeometry = 1 };