Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-37914

Allow ShaderEffect items to be batched

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • Not Evaluated
    • 5.5.0
    • None
    • Quick: SceneGraph
    • None
    • fccbe57258c10e18ccdbbec405f5522dbd97af66 ee616b3905106a3eedef9ee964ab283ef45c7dbc

    Description

      A ShaderEffect might be used to apply the same effect to a number of different, small images. For example, imagine using it to "dim" a large number of disabled icons. This approach is generally quite convenient in the QML, but can have a negative impact on rendering performance.

      As discussed with Gunnar, to allow these to be batched, the following changes could be implemented (all 3 are required):

      • images provided to the ShaderEffect without being removed from the atlas (this has the risk of allowing a ShaderEffect to access the entire atlas), and
      • QQuickShaderEffectMaterial have a smarter compare() function, and
      • ShaderEffect have API to specify that it will stay in bounds (all painting will be confined to the geometry of the ShaderEffect within the Item tree)

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            mbrasser Michael Brasser
            mbrasser Michael Brasser
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes