Re: Best Background Drawing Strategy
Re: Best Background Drawing Strategy
- Subject: Re: Best Background Drawing Strategy
- From: Allan Odgaard <email@hidden>
- Date: Thu, 11 Mar 2004 13:23:31 +0100
On 11. Mar 2004, at 9:56, Francisco Tolmasky wrote:
I have a view that has a pseudo complicated background. Its a curved
outline, with a colored fill. My question is this, is it better to
make the path each time (or at least each time it is resized), and
draw it, or is it better to hold 3 images (left, middle, right) and
then use those to composite a background images. My intuition tells
me that the latter should be faster to draw, but I'm really not sure.
How often is your view redrawn? generally window contents on OS X is
buffered, so the only time you redraw a view is either when you force
it yourself, or the user resize the window.
Do you force redraws yourself? if not, is it really worth spending
memory on image buffers in an attempt to make resize faster? if resize
is a problem, you should probably instead just check wether you are in
live resize and draw a simplified image (or nothing at all) when that
is the case.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.