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

Optimize ShaderEffect construction

XMLWordPrintable

    • 81867dfbf9c16d4300727a08eed9b5c6c979e0ba

      ShaderEffect is a relatively heavy compnent to construct compared to other built in components like Image and Rectangle. This isn't an issue when using ShaderEffect for large, infrequent effects, but can become an issue when e.g. using it on every element in a GridView.

      Some ideas:

      • See if lookThroughShaderCode can be applied per-unique-shader, rather than per-ShaderEffect-instance.
      • String-based connects; QSignalMapper; string-based property lookups, etc are all relatively heavy weight. See if they can be replaced by lighter weight alternatives.

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

            tvete Paul Olav Tvete
            mbrasser Michael Brasser
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes