diff --git a/src/quick/scenegraph/qsgcontext.cpp b/src/quick/scenegraph/qsgcontext.cpp index c6dbf350b6e5fd71c8e9ba28f7e1d41aa01796ed..4ccbaca08e1847db9732593c5be99cfcd74b44ed 100644 --- a/src/quick/scenegraph/qsgcontext.cpp +++ b/src/quick/scenegraph/qsgcontext.cpp @@ -206,6 +206,16 @@ void QSGContext::renderContextInitialized(QSGRenderContext *renderContext) d->antialiasingMethod = VertexAntialiasing; } } + + static bool dumped = false; + if (!dumped && qEnvironmentVariableIsSet("QSG_INFO")) { + dumped = true; + qDebug() << "GL_VENDOR: " << (const char *) glGetString(GL_VENDOR); + qDebug() << "GL_RENDERER: " << (const char *) glGetString(GL_RENDERER); + qDebug() << "GL_VERSION: " << (const char *) glGetString(GL_VERSION); + qDebug() << "GL_EXTENSIONS:\n " << QByteArray((const char *) glGetString(GL_EXTENSIONS)).replace(" ", "\n ").constData(); + } + d->mutex.unlock(); } diff --git a/src/quick/scenegraph/qsgrenderloop.cpp b/src/quick/scenegraph/qsgrenderloop.cpp index f294cb4a2d1a0316adcc036ffd9cdb7f800a4013..0cc2a15c51bfd3b9b16620c0fdd229b5d8e803d8 100644 --- a/src/quick/scenegraph/qsgrenderloop.cpp +++ b/src/quick/scenegraph/qsgrenderloop.cpp @@ -144,8 +144,13 @@ QSGRenderLoop *QSGRenderLoop::instance() if (!s_instance) { s_instance = QSGContext::createWindowManager(); - if (useConsistentTiming()) + bool info = qEnvironmentVariableIsSet("QSG_INFO"); + + if (useConsistentTiming()) { QUnifiedTimer::instance(true)->setConsistentTiming(true); + if (info) + qDebug() << "QSG: using fixed animation steps"; + } if (!s_instance) { @@ -178,12 +183,15 @@ QSGRenderLoop *QSGRenderLoop::instance() switch (loopType) { case ThreadedRenderLoop: + if (info) qDebug() << "QSG: threaded render loop"; s_instance = new QSGThreadedRenderLoop(); break; case WindowsRenderLoop: + if (info) qDebug() << "QSG: windows render loop"; s_instance = new QSGWindowsRenderLoop(); break; default: + if (info) qDebug() << "QSG: basic render loop"; s_instance = new QSGGuiThreadRenderLoop(); break; } diff --git a/src/quick/scenegraph/util/qsgatlastexture.cpp b/src/quick/scenegraph/util/qsgatlastexture.cpp index b180bc43bd807ffc89405ceefcd2b25fe0bc8f81..2bc106a025dcb85c7d9dbcdcdc658cce0922e0a7 100644 --- a/src/quick/scenegraph/util/qsgatlastexture.cpp +++ b/src/quick/scenegraph/util/qsgatlastexture.cpp @@ -104,6 +104,9 @@ Manager::Manager() m_atlas_size_limit = qsg_envInt("QSG_ATLAS_SIZE_LIMIT", qMax(w, h) / 2); m_atlas_size = QSize(w, h); + + if (qEnvironmentVariableIsSet("QSG_INFO")) + qDebug() << "QSG: texture atlas dimensions:" << w << "x" << h; }