Le samedi 9 juin 2012 23:24:58 vous avez écrit :
> Le samedi 9 juin 2012 22:46:46 Benoît Minisini a écrit :
> > >> Here is a little test project.
> > >> 
> > >> And I just noticed that there isn't this problem with gb.gtk. So for
> > >> me it's a
> > >> bug in gb.qt4.
> > > 
> > > On my machine, Draw.Begin with gb.gtk takes about 120 micro-seconds the
> > > first time it is called, 50 us the next times. With gb.qt4, it takes
> > > about 300 us each time.
> > > 
> > > So I don't understand how it could take 20 ms on your machine: it means
> > > that my PC is 66x faster than yours!
> > 
> > I added a little optimization in revision #4819: is it better on your
> > machine?
> 
> Yes, this is really better ! It passed from 20ms to 300us, even around 120us
> sometimes. Thanks !

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 ?

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to