Re: fast blitting with Quartz
Re: fast blitting with Quartz
- Subject: Re: fast blitting with Quartz
- From: Greg Titus <email@hidden>
- Date: Fri, 28 Sep 2007 11:00:23 -0700
On Sep 28, 2007, at 10:53 AM, Wade Tregaskis wrote:
Note that there is a practical limit to the size of an NSView,
beyond which all sorts of funkiness occurs (visible as drawing
artefacts) as a consequence of CoreGraphics using floats, and thus
having very much finite precision. It depends on your particular
code as to when exactly you'll see problems, but I wouldn't let any
view (inside a scrollview) get more than 10,000,000 pixels in any
dimension.
It might make sense for a scrolling graph like KPerfMon to directly
use just an NSClipView, and then grow/slide your graph view inside
it, and when you hit some large view size (a million pixels or so)
just reset the graph view bounds to the clip view size. Then you'd
have a full redraw every so often, but it'd be pretty rare.
- Greg
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden