[Interest] Why does a single Text item increase start-up time of QML application by 21 seconds?

Curtis Mitch mitch.curtis at theqtcompany.com
Fri Nov 13 14:18:03 CET 2015


Could it be the same issue as QTBUG-43774 [1]?

[1] https://bugreports.qt.io/browse/QTBUG-43774

From: Interest [mailto:interest-bounces at qt-project.org] On Behalf Of Christian Nielsen
Sent: Friday, 13 November 2015 12:08 PM
To: Gunnar Roth <gunnar.roth at gmx.de>
Cc: interest at qt-project.org
Subject: Re: [Interest] Why does a single Text item increase start-up time of QML application by 21 seconds?

The issue was indeed font initialization. I commented out the line in
void QWindowsFontDatabaseFT::populateFontDatabase()
that populates the font database with all system fonts. Now Qt only loads the family of the default font at start-up.


From: Gunnar Roth [mailto:gunnar.roth at gmx.de]
Sent: Monday, 9 November 2015 07:42
To: Christian Nielsen
Cc: interest at qt-project.org<mailto:interest at qt-project.org>
Subject: Re: [Interest] Why does a single Text item increase start-up time of QML application by 21 seconds?


Am 05.11.2015 um 08:46 schrieb Christian Nielsen <Christian.Nielsen at ivolve.com<mailto:Christian.Nielsen at ivolve.com>>:

I guess you are on to something. But then why does my Qt Widget application start fast enough.

Is there a way to make Qt Quick do text like Qt Widgets?



Try this:
renderType : enumeration

Override the default rendering type for this component.
Supported render types are:
*         Text.QtRendering - the default
*         Text.NativeRendering
Select Text.NativeRendering if you prefer text to look native on the target platform and do not require advanced features such as transformation of the text. Using such features in combination with the NativeRendering render type will lend poor and sometimes pixelated results.



From: Gunnar Roth [mailto:gunnar.roth at gmx.de]
Sent: Thursday, 5 November 2015 17:15
To: Christian Nielsen
Cc: interest at qt-project.org<mailto:interest at qt-project.org>
Subject: Re: [Interest] Why does a single Text item increase start-up time of QML application by 21 seconds?

Nice catch. My wild guess is font initialization.
Regards,
Gunnar Roth
Am 05.11.2015 um 07:52 schrieb Christian Nielsen <Christian.Nielsen at ivolve.com<mailto:Christian.Nielsen at ivolve.com>>:


I am thinking that the issue is not the loading of the dlls. Because Widget application and Qt Quick Rectangle application loads fast enough.
The issue is not parsing QML. These sample QML files are just a few lines long.
It is not the instantiation of the Text item. Because adding a second Text item is instant.
So what can it be?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20151113/54c9e9a5/attachment.html>


More information about the Interest mailing list