• 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: Speed up drawing of View with multiple NSBezierPaths
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Speed up drawing of View with multiple NSBezierPaths


  • Subject: Re: Speed up drawing of View with multiple NSBezierPaths
  • From: Chuck Soper <email@hidden>
  • Date: Sun, 6 Jul 2003 18:09:31 -0700

At 12:13 PM -0700 7/6/03, Henry McGilton wrote:

Depending on your application could you just reduce the number of NSBezierPaths. For example, if you're drawing a thousand rectangles with a thousand NSBezierPaths you should be able to draw a thousand rectangles with one NSBezierPath. Yet, all of the rectangles will need to have the same attributes (line width, color, etc.).

Not quite true. Check out the AppKit function NSRectFillListWithColors and
NSRectFillListWithColorsUsingOperation (this second one for the
benefit of those who will not scroll down half a page)

What was "Not quite true" about my statement? Isn't appending a thousand rectangles to a single path (using appendBezierPathWithRect) significantly faster than using a thousand paths each with a single rectangle? The original question was about general optimization not rectangles.
_______________________________________________
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.
  • Follow-Ups:
    • Re: Speed up drawing of View with multiple NSBezierPaths
      • From: publiclook <email@hidden>
References: 
 >Re: Speed up drawing of View with multiple NSBezierPaths (From: Henry McGilton <email@hidden>)

  • Prev by Date: Re: IOKit Power Manager Help
  • Next by Date: Re: Speed up drawing of View with multiple NSBezierPaths
  • Previous by thread: Re: Speed up drawing of View with multiple NSBezierPaths
  • Next by thread: Re: Speed up drawing of View with multiple NSBezierPaths
  • Index(es):
    • Date
    • Thread