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

Allow applications to opt-out of OpenGL initialization

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • P2: Important
    • 5.6.0 RC
    • None
    • QPA: X11/XCB
    • None
    • Linux x86_64
      Intel HD 4000 graphics (i965 driver)

    • 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

            lagocs Laszlo Agocs
            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