Re: Speed problems using NSImage. Solution?
Re: Speed problems using NSImage. Solution?
- Subject: Re: Speed problems using NSImage. Solution?
- From: Matt Neuburg <email@hidden>
- Date: Sun, 07 Jan 2007 09:56:42 -0800
- Thread-topic: Speed problems using NSImage. Solution?
On or about 1/6/07 11:48 PM, thus spake "email@hidden"
<email@hidden>:
> Date: Sat, 6 Jan 2007 19:42:37 -0800
> From: "Matt R" <email@hidden>
> Subject: Speed problems using NSImage. Solution?
>
> Hi everyone, I'm new to both Cocoa and the list, so please excuse any
> ignorance on my part. I was hoping I could get some advice from you all on
> finding a fast, straightforward alternative to using NSImage and NSViews. To
> learn cocoa I've started making a small little arcade game. In the game, the
> player sees a boat (from overhead) which can rotate in a circle and drive
> around the ocean.
>
> My problem is that despite all my attempts to optimize my code, I can't seem
> to obtain any reasonable speeds using NSImage drawInRect. The results are
> ridiculously slow. (18fps with CPU maxed out)
I've never done what you're doing (though I'd like to, which is why I'm
interested), so this is just a wild guess; but have you read this? It sounds
to me like it *might* be relevant, both as to the cause of the problem and
as to how to track it down and fix it:
<http://developer.apple.com/documentation/Performance/Conceptual/Drawing/Art
icles/FlushingContent.html>
m.
--
matt neuburg, phd = email@hidden, http://www.tidbits.com/matt/
pantes anthropoi tou eidenai oregontai phusei
AppleScript: the Definitive Guide - Second Edition!
http://www.amazon.com/gp/product/0596102119
Take Control of Word 2004, Tiger, and more -
http://www.takecontrolbooks.com/tiger-customizing.html
Subscribe to TidBITS! It's free and smart. http://www.tidbits.com/
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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