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

Webkit text rendering performance

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • None
    • 5.0.1, 5.0.2
    • GUI: Font handling, WebKit
    • None
    • Windows, MSVC/MinGW, 32/64bit

    Description

      I ran into a problem while using the QWebView to display text, which can be moved around in the view. After adding quite some text (some thousand characters) performance drops significantly. Movement become choppy, and the processor core is fully utilized. Some digging around using vtune, narrows down the problem to QWindowsFontEngine::getOutlineMetrics(...) in the windows call getGlyphOutline.

      This has been tested on:

      • Windows 8 Qt MSVC 2010 32bit - 5.0.1
      • Windows 7 Qt MinGW 32bit - 5.0.1
      • Windows 7 Qt MSVC 2012 64bit - 5.0.2 latest
      • Linux GCC 64bit Qt 5.0.1

      The problem persists on all windows versions, while it performs nicely on linux (no surprise since the problem seems to be in the QWindowsFontEngine).

      Attachments

        1. TextWebviewTest.rar
          2 kB
          Stian Djuvsland
        2. vtune_bottom_up.png
          284 kB
          Stian Djuvsland
        3. vtune_test_caller_callee.png
          361 kB
          Stian Djuvsland
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            allan.jensen Allan Sandfeld Jensen
            djuvsland Stian Djuvsland
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes