• 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
Pure Quartz vs. Cocoa-Objects ... why is Quartz slower?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Pure Quartz vs. Cocoa-Objects ... why is Quartz slower?


  • Subject: Pure Quartz vs. Cocoa-Objects ... why is Quartz slower?
  • From: John Fox <email@hidden>
  • Date: Fri, 11 Feb 2005 08:47:43 -0800

Hi Michael:

After much work, I managed to create a very satisfactory iPhoto-like scaling thumbnail display. I never dropped down to the Quartz 2D layer for drawing because (a) I don't anything about it, and (b) it hasn't seemed necessary.

The way I got good performance from beginning to end is to use a mutable dictionary to store the NSBitmapReps. In my drawRect: method I only ever draw images that are currently visible in the my clipView. Drawing as little as possible is always a good thing, and sometimes easy to overlook. Finally, I archive the dictionary so that when my app starts, I don't have to create the bitmap reps over and over again. In fact, if you look inside the iPhoto library folder, you can see that there are two archives of bitmap reps in small and large sizes.

All this said, it's quite possible that using the Quartz 2D drawing methods will yield another speed boost, but I wanted to share with you and the list what I've found.

Hope this helps,

John

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Pure Quartz vs. Cocoa-Objects ... why is Quartz slower?
      • From: Michael Becker <email@hidden>
  • Prev by Date: Re: force end of editing and bindings
  • Next by Date: Re: Philosophy of FSRef - way
  • Previous by thread: Pure Quartz vs. Cocoa-Objects ... why is Quartz slower?
  • Next by thread: Re: Pure Quartz vs. Cocoa-Objects ... why is Quartz slower?
  • Index(es):
    • Date
    • Thread