[Gambas-user] Draw.Begin/End execution time

Adrien Prokopowicz adrien.prokopowicz at ...626...
Sat Jun 9 21:05:29 CEST 2012


Le samedi 9 juin 2012 20:45:49 Benoît Minisini a écrit :
> Le 09/06/2012 19:41, Adrien Prokopowicz a écrit :
> > Hi all,
> > 
> > in my project I have a cached DrawArea that I need to redraw each time it
> > is resized. My code is like this :
> > 
> > Public Sub RefershDrawArea()
> > 
> >    Draw.Begin($drawArea)
> >    
> >    'Drawing methods here ...
> >    
> >    Draw.End
> > 
> > End
> > 
> > That works perfectly, but when I launch the profiler, he tells me that the
> > Draw.Begin() method takes a lot of time (around 20 ms).
> > 
> > Is there a way to make this call faster ? Or maybe a way to do only one
> > call to Begin() when the user starts resizing and to End() when it stops
> > ?
> > 
> > Regards,
> > Adrien.
> 
> Please provide a project that shows that!

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. 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TestCacheArea-0.0.1.tar.gz
Type: application/x-compressed-tar
Size: 4897 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20120609/84a80804/attachment.bin>


More information about the User mailing list