diff options
author | Paul Lemire <paul.lemire@kdab.com> | 2019-11-07 08:26:57 +0100 |
---|---|---|
committer | Paul Lemire <paul.lemire@kdab.com> | 2019-12-20 11:58:14 +0100 |
commit | b7873ef58825993f7b820ec78842d0e5bbd7a8a5 (patch) | |
tree | 4d1553961c83e2fc54d4835274dd879b44731f5e /src/render/framegraph/qsortpolicy.cpp | |
parent | 390982e5d62b76528ce345dfcac7325abc839935 (diff) |
QSortPolicy: add Uniform sorting mode
We used to perform uniform minization between adjacent render commands all the time.
Since this can yield to a higher CPU usages (but more efficient rendering submission),
we now make this step optional.
[ChangeLog] QSortPolicy add Uniform mode (to control whether uniform minization
should be performed)
Change-Id: I5c0e0dba22400a9884ee1d75426fd76b073fdcb5
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/render/framegraph/qsortpolicy.cpp')
-rw-r--r-- | src/render/framegraph/qsortpolicy.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/render/framegraph/qsortpolicy.cpp b/src/render/framegraph/qsortpolicy.cpp index a24dd5eae..5c04025b0 100644 --- a/src/render/framegraph/qsortpolicy.cpp +++ b/src/render/framegraph/qsortpolicy.cpp @@ -98,12 +98,14 @@ QSortPolicyPrivate::QSortPolicyPrivate() projection of the camera-to-object-center vector onto the camera's view vector. - \value Material sort the objects based on their material value + \value Material sort the objects based on their material (shader) value. \value FrontToBack sort the objects from front to back. The opposite of BackToFront. \value [since 5.14] Texture sort the objects to minimize texture changes. + + \value [since 5.15] Uniform sort the objects to minimize uniform changes. */ /*! @@ -123,10 +125,11 @@ QSortPolicyPrivate::QSortPolicyPrivate() order. More accurately, the sorting key is the z component of the projection of the camera-to-object-center vector onto the camera's view vector. - \li Material - sort the objects based on their material value + \li Material - sort the objects based on their material (shader) value. \li FrontToBack - sort the objects from front to back. The opposite of BackToFront. \li [since 5.14] Texture - sort the objects to minimize texture changes. + \li [since 5.15] Uniform - sort the objects to minimize uniform changes. \endlist */ |