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

Allow applications to opt-out of OpenGL initialization

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 5.6.0 RC
    • Component/s: QPA: X11/XCB
    • Labels:
      None
    • Environment:

      Linux x86_64
      Intel HD 4000 graphics (i965 driver)

    • Technical Risk:
      Normal
    • Commits:
      5d5e0a4e976622bc3db8b1f7f70041ff71e45085

      Description

      For applications that do not require OpenGL, it would be nice to allow them to opt-out of initializing the Mesa driver, since the initialization can be computationally expensive. QApplication already has AA_ForceRasterWidgets, which causes the use of plain RasterSurface everywhere instead of RasterGLSurface. It is a trivial change in the XCB backend to check for a RasterSurface (in qxcbwindow.cpp) and avoid the OpenGL initialization path in this case.

      As an example, Audacious shows a 23% reduction in startup time (as measured by Valgrind) with this patch.

        Attachments

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

          Activity

            People

            Assignee:
            lagocs Laszlo Agocs
            Reporter:
            john.lindgren@aol.com John Lindgren
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes