• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Best Background Drawing Strategy
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Best Background Drawing Strategy (From: Francisco Tolmasky <email@hidden>)

  • Prev by Date: Inter-process privilege verification
  • Next by Date: array problem
  • Previous by thread: Re: Best Background Drawing Strategy
  • Next by thread: how to import an eps file in Interface Builder
  • Index(es):
    • Date
    • Thread