im trying to create a overlay view using a ui view and need to draw about 2000 polygons onto the view. but the performance is really slow and everytime it redraws it will take a long time. currently im drawing these polygons by pointing points onto the uiview and then linking the points together with lines.
is there some standard way to do this that would reduce overhead?
Cheers.
You have two options:
If you want more help from stack overflow, you need to run the profiler, and edit your question to show the profiler results and your drawing code.
If you don’t know how to use Instruments, go to http://developer.apple.com/videos/ios/ and watch the video “Optimizing App Performance with Instruments”.