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

Benoît Minisini gambas at ...1...
Sat Jun 9 20:45:49 CEST 2012


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!

-- 
Benoît Minisini




More information about the User mailing list