This Qbs module allows you to debug your Qt Quick Scene Graph's default renderer with ease. It doesn't do any kind of magic—just sets some of the environment variables before you run your app with qbs run
. I was too tired of doing this manually in my terminal over and over again.
For more information on the theory and techniques, please, refer to the Qt Quick Scene Graph Default Renderer.
$ mkdir 3rdParty
$ cd 3rdParty
$ git clone https://github.com/GooRoo/qbs-sgdebug.git
Project {
qbsSearchPaths: '3rdParty/qbs-sgdebug'
}
Just add it as a dependency to your product and set the desired parameters:
CppApplication {
Depends { name: 'scenegraphdebug' }
scenegraphdebug.visualize: 'overdraw'
}
-
logInfo
. Possible values:true
|false
More information on QRhi is here. Sets
QSG_RENDERER_DEBUG
. -
logStats
. Possible values:true
|false
More information on performance is here. Sets
QSG_RENDERER_DEBUG
. -
logTiming
. Possible values:true
|false
More information on performance is here. Sets
QSG_RENDER_TIMING
. -
colorizeAtlasTextures
. Possible values:true
|false
More information on performance is here. Sets
QSG_ATLAS_OVERLAY
. -
visualize
. Possible values:'batches'
|'clip'
|'changes'
|'overdraw'
More information on visualization is here. Sets
QSG_VISUALIZE
.
The module is distributed under the terms of MIT license.