Adrien Prokopowicz | 9 Jun 2012 19:41
Picon
Gravatar

Draw.Begin/End execution time

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.

------------------------------------------------------------------------------
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/

Gmane