• 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: Slow Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Slow Cocoa


  • Subject: Re: Slow Cocoa
  • From: "Tregaskis, Wade" <email@hidden>
  • Date: Tue, 17 Feb 2004 09:39:13 +1100

>> I am making an app that draws using Quartz. I used to use the C
>> functions, but then I started using NSBezierPath. When I tried that
>> everything was slower. I am guessing this is because of the messaging.
>> Is there a way to "speed up" objc?
>
>First question: are you keeping the bezierpath around, or creating a
>new one every time -drawRect: is called?

Off the top of your head, what's the performance difference between creating a new bezier path for each drawing, and keeping one around and manipulating it via transforms or some similar mechanism? Is it a 2x or 3x benefit, or are we talking orders of magnitude?

Wade Tregaskis
_______________________________________________
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: Slow Cocoa
      • From: Public Look <email@hidden>
  • Prev by Date: Re: NSImage and flipping
  • Next by Date: Re: NSTableView/NSPopUpButtonCell Mysteries
  • Previous by thread: Re: Slow Cocoa
  • Next by thread: Re: Slow Cocoa
  • Index(es):
    • Date
    • Thread