[Openmcl-devel] Core Animation demo

Neil Baylis neil.baylis at gmail.com
Wed Jul 8 01:39:45 UTC 2009


On Jul 7, 2009, at 2:35 PM, Raffael Cavallaro wrote:

>
> On Jul 7, 2009, at 2:24 PM, Neil Baylis wrote:
>
>> The mac mini has a poor graphics card, but if that were the problem I
>> think it would affect the objc version as well. What is your machine?
>
> Maybe it's the graphics card. I'm running on a Macbook Pro 2.4GHz
> core2 duo, but during the drag I'm only seeing < 10% CPU usage. Core
> Animation is one of those frameworks that punts to the cpu when the
> gpu isn't up to it. I'm guessing you're seeing significantly higher
> cpu usage by ccl during the drag, no?

Actually, I was seeing about 6% with CCL, and about 1.5% with objc.

However, I found the problem. I carefully compared the objc code and  
the lisp code again, and noticed that the objc code does not call  
setNeedsDisplay in the mouse event handlers. I removed these calls  
from the lisp version, and now the animation is just as smooth as the  
objc version. Also, during continuous dragging, the CPU usage reported  
by "top" is about 3.6%, which is pretty good, I think.

It must be that this call is handled differently between your NVIDIA  
graphics chip, and the crappy GMA950 on the Mac Mini.

I've attached the corrected version, even though nobody apart from me  
saw the problem. Thanks for your input.

Neil


-------------- next part --------------
A non-text attachment was scrubbed...
Name: ca-demo.lisp
Type: application/octet-stream
Size: 3600 bytes
Desc: not available
URL: <http://lists.clozure.com/pipermail/openmcl-devel/attachments/20090707/e0c35636/attachment.obj>
-------------- next part --------------



More information about the Openmcl-devel mailing list