| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
On Monday, September 29, 2003, at 11:18 pm, Chris Hanson wrote:
One way to speed up your code would be to create a real NSBezierPath for the rectangle, and keep the path itself around.
Are you sure? I'm pretty certain that NSRectFill() is faster than using an NSBezierPath to draw the same rectangle, even if you don't create the NSBezierPath every time.
You can get quite a good performance increase (about 10 times) by using NSRectFillList() rather than NSRectFill(), assuming that it's possible to sort the rectangles by colour. If it isn't possible to do that, then NSRectFillListWithColors() is still faster than NSRectFill() by a fair margin.
| References: | |
| >Re: Cocoa graphics speed (From: "Alastair J.Houghton" <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.