[Gambas-user] Draw.Begin/End execution time
Benoît Minisini
gambas at ...1...
Sun Jun 10 00:32:16 CEST 2012
Le 10/06/2012 00:02, Adrien Prokopowicz a écrit :
> I have another little question.
> In the project I sent you, I added two lines after FillRect() :
>
> Draw.Text("Gambas", 50, 50)
> Draw.Text("Gambas", 100, 100)
>
> The first takes around 2 msec, the second only 120usec.
> Is there any font loading, or something like that, when calling draw.text ?
>
I imagine that Qt loads each font glyph only when it actually needs it.
The second time you display "Gambas", the six glyphs are already loaded,
and so drawing is faster.
--
Benoît Minisini
More information about the User
mailing list