[Gambas-user] Draw.Begin/End execution time
Adrien Prokopowicz
adrien.prokopowicz at ...626...
Sat Jun 9 19:41:49 CEST 2012
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.
More information about the User
mailing list