• 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: Public Look <email@hidden>
  • Date: Mon, 16 Feb 2004 10:47:05 -0500

Objective-C messaging is unlikely to have any significant impact on drawing speed. The messaging overhead is negligible compared to the processing needed to paint anti-aliased pixels. The only way I would suspect messaging overhead is if you were using multiple messages to paint every pixel.

Quartz has interesting and non-intuitive performance characteristics. Many paths with few segments can be drawn much faster than few paths with many segments. There is a huge combinatorial overhead associated with the join and intersection of segments within a path. When you started using NSBezierPath, did you also start creating complex paths with many segments ?

See past threads on this topic in the archives:
http://cocoa.mamasam.com/COCOADEV/2002/04/1/30630.php
http://cocoa.mamasam.com/COCOADEV/2002/02/1/24334.php

On Feb 15, 2004, at 10:23 PM, Sam McCandlish wrote:

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? Thanks!
_______________________________________________
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.
_______________________________________________
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: 
 >Slow Cocoa (From: Sam McCandlish <email@hidden>)

  • Prev by Date: Re: how to save styled text
  • Next by Date: fileWrapperRepresentationOfType and PkgInfo
  • Previous by thread: Re: Slow Cocoa
  • Next by thread: Re: Slow Cocoa
  • Index(es):
    • Date
    • Thread