Re: [Pyobjc-dev] Anyone using Foundation.NSRectFillList?
Brought to you by:
ronaldoussoren
From: b.bum <bb...@ma...> - 2003-07-23 16:52:07
|
On Wednesday, July 23, 2003, at 9:46 AM, Ronald Oussoren wrote: > The current implementation (checked in this morning, MEST) accepts the > 'old' style arguments as well as a sequence of python tuples > representing NSRects. Cool. > Speed is an issue of course, but I'd expect that using the new > arguments would be as fast as struct.pack + old arguments. That is, > unless you draw the same rects over and over again. I'll leave the > old-style arguments in for when speed is really important. Excellent. When I have a moment to breathe, I'll dust off the old example and fix it up to actually show the drawing speed in the window with the drawing + a popup to select between different styles of drawing. Similar wrapping should also exist for the rest of the NSGraphics functional API, but that should likely be held off until we know exactly what performance advantages, if any, are gained through the different calling styles. b.bum |