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

drawPath three hundred times slower

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: P4: Low P4: Low
    • None
    • 4.8.1
    • GUI: Painting
    • None
    • Mac OSX; Win XP

      I use drawPath to draw line plots from lab experiments.
      When experiments contain "noise" drawPath is very fast in drawing the curve, if the line with is 1 pixel wide. It is much slower (three hundred times) when it is 2 pixels wide. This huge difference cannot be explained only from the larger complexity of writing two pixels wide. There must be some other issue inside that endangers speed.
      I enclose a file containing a sample path (pathdata.dat), and a tiny program to show the issue.

      The output of this program on my PC is as follows:
      drawpath time with default painter: 10 milliseconds
      drawpath time with lines two pixels wide: 3028 milliseconds

        1. main.cpp
          1 kB
        2. pathdata.dat
          106 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            rodal Samuel Rødal
            mcwork Massimo Ceraolo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes