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

Canvas shadowBlur is much slower than its browser implementation

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.2.0, 5.3.0
    • Fix Version/s: None
    • Labels:
    • Environment:
      This has been tested in both a desktop PC (Ubuntu, x86_64) and on mobile platforms (Ubuntu touch, nexus-4).
      In both cases, browser was smooth, while the qml version was very laggy.

      Description

      I've tried the Qml implementation (attached, by the qmlbook.org author) of the W3C "pretty glow lines" 2d canvas example [1] enabling the shadowBlur and setting it to 10 as it was in the JS glow lines implementation.

      However, while the javascript example runs fast and smooth on all the devices I've tried and with all the browsers (that supports canvas), the Qml version starts hanging as soon as the "context.shadowBlur = 10;" line is enabled.

      For some reason this does't seem to use any acceleration, and also if the visual result is similar (in terms of quality), the speed is way different.

      I think this is quite a major issue, as currently the shadowBlur is not usable in qml canvas.

      [1] http://www.w3.org/TR/2dcontext/#examples

        Attachments

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

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            3v1n0 Marco Trevisan
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes