Details
-
Task
-
Resolution: Done
-
P4: Low
-
None
-
Linux
Description
Hello,
I have profiled the Tiled based game, most of the performance lost are here, the chain of slow down:
QPixmap::fromImage()
QImage::convertToFormat(QImage::Format, QFlags<Qt::ImageConversionFlag>)
convert_Indexed8_to_X32(QImageData *, QImageData const *, QFlags<Qt::ImageConversionFlag>)
After split into 2 calls:
fix_color_table(QVector<unsigned int> const &, QImage::Format)
QVector<unsigned int>::at()
Why so many QVector call?
Cheers,
Attachments
For Gerrit Dashboard: QTBUG-35747 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
155751,2 | Optimize convert_Indexed8_to_X32 | 5.7 | qt/qtbase | Status: MERGED | +2 | 0 |