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,