• 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: Quartz/memory benchmarks...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quartz/memory benchmarks...


  • Subject: Re: Quartz/memory benchmarks...
  • From: Allan Odgaard <email@hidden>
  • Date: Thu, 27 Jun 2002 13:06:55 +0200

On torsdag, juni 27, 2002, at 11:22 , Paul Fox wrote:

My initial results show that string drawing is a killer [...]

This is using [NSString drawAt:]. I have experimented with directly
calling the NSLayoutManager and as yet I am 25% slower than NSString, so
I am missing some optimisations.

I also found string drawing rather slow and so switched to CGContextShowGlyphs(), which is faster.

Unfortunately I have to provide glyphs rather than strings, and CGGlyph (as the function expect) is not the same as an NSGlyph, so you can't just typecast the result from e.g. NSLayoutManager...

And resorting to using the Core Graphics is rather irritating when one wants to use Cocoa -- not to mention that using the more low-level API is often not enough to speed up things...

I think Apple should carry on with Cocoa and provide a complete new
API with none of the anti-aliasing, floating-point co-ords crap and

I wouldn't really go that far... anti-alias is a must today, and I'm not sure foating point itself slows it down. At least for x86 processors I'm told they handle floats faster than integers.

Btw: you can actually disable anti-alias by calling setShouldAntiAlias on your current NSGraphicsContext. Though i don't know if it provides a speed-up.
_______________________________________________
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: 
 >Re: Quartz/memory benchmarks... (From: Paul Fox <email@hidden>)

  • Prev by Date: RE: NSHost and the IP addresses ...
  • Next by Date: Re: NSHost and the IP addresses ...
  • Previous by thread: Re: Quartz/memory benchmarks...
  • Next by thread: Re: Quartz/memory benchmarks...
  • Index(es):
    • Date
    • Thread