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

BorderImage's Repeat and Round tile modes perform horribly in some cases

XMLWordPrintable

    • a2aa4705702256c15aaaf64e08b90c4749233f9d

      For example when creating a BorderImage which source is 33x33 pixels and
      setting the borders to 16 (one pixel in the center gets stretched/repeated
      to fill the center area), the rendering performance is horrible with Repeat
      and Round modes.

      Also the CPU usage gets really high. On my desktop machine, rotating a
      1000x1000 sized BorderImage like the one described above consumes 1% of CPU
      when using Stretch tile mode and 90% when using Repeat or Round modes.

      If implementing the Repeat and Round modes by multiplying the geometry
      is the way to go then at least it should be properly documented that
      repeating really small source image areas to fill large areas is very
      expensive.

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

            glwatson Glenn Watson
            kimgronholm Kim Grönholm
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes