FROM : Paolo Costabel
DATE : Wed Dec 22 23:10:58 2004
The window image is cached, that's why it renders fast. Rendering text
every frame is slow: try creating an image and render that instead.
Toby Smith wrote:
>I feel like there's a standard mantra of disclaimers to be made before a
>posting of this sort. Yes, I have done some searching through the
>archives. And yes, I have considered OpenGL.
>
>The Quartz API is beautiful. It's exactly what I want. I want perfectly
>rendered text, at any size, at any angle. Transparency? Yes, please.
>For text rendering, Quartz is far superior to OpenGL.
>
>But lord, it's dog slow, isn't it.
>
>Here's what I don't get. I have an ancient G3 Mac running 10.3. If I
>cobble up a bit of code with a single CGContextDrawImage() and a single
>CGContextShowTextAtPoint(), with an image that's 1024x768, I get a frame
>rate that's maybe 10fps. If I add shadows to that text, I'm at about
>1fps. Not exactly ready to ship.
>
>Now, on that same machine, whose monitor is 1280x1024, with a pretty
>little desktop image, I drag a window around, that window drags itself
>around just great, with a shadow, keeping up with the mouse with no
>problems.
>
>So what the dilly. Does Finder use some API I'm not privy to? Is there
>some magic CGContextDrawFaster() method or something? Apple has such a
>great API with the Quartz stuff, but I feel like I'm missing some huge
>piece of the puzzle. Or does the Finder use OpenGL, bypassing Quartz
>entirely?
>
>Regards,
>Tob
>
> _______________________________________________
>Do not post admin requests to the list. They will be ignored.
>Cocoa-dev mailing list (<email_removed>)
>Help/Unsubscribe/Update your Subscription:
>http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
>This email sent to <email_removed>
>
>
>
--
Get Firefox! <http://www.getfirefox.com>
DATE : Wed Dec 22 23:10:58 2004
The window image is cached, that's why it renders fast. Rendering text
every frame is slow: try creating an image and render that instead.
Toby Smith wrote:
>I feel like there's a standard mantra of disclaimers to be made before a
>posting of this sort. Yes, I have done some searching through the
>archives. And yes, I have considered OpenGL.
>
>The Quartz API is beautiful. It's exactly what I want. I want perfectly
>rendered text, at any size, at any angle. Transparency? Yes, please.
>For text rendering, Quartz is far superior to OpenGL.
>
>But lord, it's dog slow, isn't it.
>
>Here's what I don't get. I have an ancient G3 Mac running 10.3. If I
>cobble up a bit of code with a single CGContextDrawImage() and a single
>CGContextShowTextAtPoint(), with an image that's 1024x768, I get a frame
>rate that's maybe 10fps. If I add shadows to that text, I'm at about
>1fps. Not exactly ready to ship.
>
>Now, on that same machine, whose monitor is 1280x1024, with a pretty
>little desktop image, I drag a window around, that window drags itself
>around just great, with a shadow, keeping up with the mouse with no
>problems.
>
>So what the dilly. Does Finder use some API I'm not privy to? Is there
>some magic CGContextDrawFaster() method or something? Apple has such a
>great API with the Quartz stuff, but I feel like I'm missing some huge
>piece of the puzzle. Or does the Finder use OpenGL, bypassing Quartz
>entirely?
>
>Regards,
>Tob
>
> _______________________________________________
>Do not post admin requests to the list. They will be ignored.
>Cocoa-dev mailing list (<email_removed>)
>Help/Unsubscribe/Update your Subscription:
>http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
>This email sent to <email_removed>
>
>
>
--
Get Firefox! <http://www.getfirefox.com>
| Related mails | Author | Date |
|---|---|---|
| Toby Smith | Dec 22, 23:03 | |
| Paolo Costabel | Dec 22, 23:10 | |
| Ricky Sharp | Dec 23, 01:21 | |
| Toby Smith | Dec 23, 09:44 | |
| M. Uli Kusterer | Dec 23, 14:43 | |
| Toby Smith | Dec 28, 18:29 |






Cocoa mail archive

