QSGRenderer: sanity check attribute regs only when QSG_SANITY_CHECK=1
authorJ-P Nurmi <jpnurmi@digia.com>
Tue, 10 Dec 2013 11:11:14 +0000 (12:11 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 10 Dec 2013 12:32:25 +0000 (13:32 +0100)
commitfb72bb3cf27d1f94760709aaab82e3524ae936f4
tree52bfc5c07700b43c0b5abd77a946a8e52dae397c
parentabf74b112d3bffa9406f2effd971189001f500db
QSGRenderer: sanity check attribute regs only when QSG_SANITY_CHECK=1

The sanity check that attribute registers are disabled that was always
done in debug mode took roughly 16ms on my machine and caused a trivial
QML animation to eat 100% CPU.

Task-number: QTBUG-35443
Change-Id: I8ba2a80db341d17e08216b3cad1678dd59b9b1a5
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
src/quick/scenegraph/coreapi/qsgrenderer.cpp