how to speed-up drawRect?
<p>I'm coding a map app for <strong>iPhone</strong>, like Google Maps but with my own maps.  </p>

<p>What I have so far is working, but sadly, slower than I would like.  </p>

<p>I'm basically drawing the correct map tiles in each <code>drawRect</code>:<br>
<code>[image drawAtPoint:CGPointMake(x, y)];</code>    </p>

<p>X and Y are being calculated in each call to <code>drawRect</code><br>
( these calcs are not very expensive ).    </p>

<p>The maximum number of images being drawn at a time is 4.<br>
Each image is <code>512 x 512</code>.  </p>

<p>I feel that some kind of optimization is lacking here.  </p>

<p>Can anyone help with something?<br>
Thanks you all.</p>
