estinot
08-09-2007, 11:27 AM
Hi,
I'm trying create a simple drawing component (think ms paint). I've tried <drawview> but it was slow. I used a view with sub-views as pixels instead and i'm getting a good enough performance.
the problem comes in when it's time to clear everything.
In a simple drawing there can be up to 2500 views. To remove these i've tried three methods
1. set the views visible attribute to false. -things get slow after
2. destroy the views.- takes a long time but good performance after
3. replace the views' parent. - more slowness
Is there a better pixel? Should I RTFM?
:o
Should I go back to <drawview>?
How do I destroy 1000 views quickly?
I'm trying create a simple drawing component (think ms paint). I've tried <drawview> but it was slow. I used a view with sub-views as pixels instead and i'm getting a good enough performance.
the problem comes in when it's time to clear everything.
In a simple drawing there can be up to 2500 views. To remove these i've tried three methods
1. set the views visible attribute to false. -things get slow after
2. destroy the views.- takes a long time but good performance after
3. replace the views' parent. - more slowness
Is there a better pixel? Should I RTFM?
:o
Should I go back to <drawview>?
How do I destroy 1000 views quickly?