Details
-
Task
-
Resolution: Done
-
P2: Important
-
None
-
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
For Gerrit Dashboard: QTBUG-46765 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
114788,2 | xcb: make it possible to disable gl integrations | 5.5 | qt/qtbase | Status: MERGED | +2 | 0 |
124660,1 | Avoid triggering OpenGL initialization for RasterSurface | dev | qt/qtbase | Status: ABANDONED | -2 | 0 |
126860,4 | Avoid triggering OpenGL initialization for RasterSurface | 5.6 | qt/qtbase | Status: MERGED | +2 | 0 |