-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.8.3
-
None
Issue
[Shadergen tool|https://doc.qt.io/qt-6/qtquick3d-tool-shadergen.html] doesn't eliminate "Generate Shader" step in launch.
"Generate Shader" step is found here:
https://doc.qt.io/qtcreator/creator-qml-performance-monitor.html#analyzing-qt-quick-3d-events
In the sample project, robot arm sample, was used to reproduce the issue.
The repository is here: https://git.qt.io/mikio_hirai/shadergentest#
Qt Quick 3D is used in these files in this project:
- https://git.qt.io/mikio_hirai/shadergentest/-/blob/master/content/MainScreen.ui.qml?ref_type=heads
- https://git.qt.io/mikio_hirai/shadergentest/-/blob/master/content/RoboticArm.ui.qml?ref_type=heads
content/CMakeLists.txt has qt6_add_materials(), like so: https://git.qt.io/mikio_hirai/shadergentest/-/blob/master/content/CMakeLists.txt?ref_type=heads#L5
this generated resources like so:
However, when the app is run, it still seems to go through "Generate Shader" step in launch.
*Generate Shader is taking longer because of log output caused by QT_RHI_SHADER_DEBUG=1.
You can see the console output with the attached log.txt.