Re: Can I get AppKit to draw this faster ?
Re: Can I get AppKit to draw this faster ?
- Subject: Re: Can I get AppKit to draw this faster ?
- From: Nat! <email@hidden>
- Date: Wed, 9 Oct 2002 00:29:09 +0200
Am Dienstag, 08.10.02 um 23:59 Uhr schrieb Marcel Weiher:
On Tuesday, October 8, 2002, at 11:41 Uhr, Nat! wrote:
[drawing lots of images]
A good tip, but unfortunately my intended effect very much depends on
scaling.
Have you tried the "Quartz Extreme" trick? Setting the bitmap up as
an OpenGL texture and then just scaling the polygon used to draw it?
Should then take essentially no time.
Yes that's also a good tip. Lazy lamer that I am, I am trying to avoid
OpenGL though :)
60MB/s would be sweet indeed, alas it's only 2000 lines/s -> 2000 *
128 * 4 = 1MB/s. Just a ballpark figure of course.
Looking some more at the Sampler.app output it seems that the AppKit
and CoreGraphics is more busy locking internal resources, than
actually drawing. I suspect there is no way for me to escalate these
locks, outside of my drawing loop ?
#1 advice, at least back in NS/OS days: don't use NSImage.
I thought the #1 advice was to cache your drawings in NSImages and draw
from them :)
Hmm - looking through the AppKit dox - would you expect NSDrawBitmap to
be any faster ? I will give it a try now, I have little hope though. [I
was expecting the graphics context to have set up most of the locks
before my NSImage calls already, but that's apparently not so. I guess
NSDrawBitmap will have the same problem.]
Ciao
Nat!
Jedenfalls sind zehn Fehlstarts hintereinander [E. Fuchs]
ein sehr interessanter Beweis
fuer unsere Theorie
von der natuerlichen Ueberlegenheit des Dezimalsystems
_______________________________________________
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.