| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
| Hi, I've written an iTunes Quarz Composition Player, that besides other data includes images for spectrum and the sound wave. These images are changed for every frame that is calculated by the QCRenderer. The images are NSImage, with an NSBitmapImageRep Represenation. I write directly to the BitmapDataPlanes that are an unsigned char array of 257x512. For every image I just update the data in that array and then send an setValue message with the same NSImage than before to the QCRenderer. The NSImage is set to [image setDataRetained:YES]; [image setCacheMode:NSImageCacheNever]; This solution works, but it's very slow. All my CPU gets eaten up when I use different of those created images. According to shark, the routine that eats up my CPU (62.7% of it) is QuartzComposer planarGetBytes that is called indirectly my QCGLImagePort that eats up 73.4% of my CPU all together with the other routines it calles including that planarGetBytes 10 level deeper. How can I create Images that are given to an Input of an composition, without wasting so much CPU? Greeting from Germany Christoph Vogelbusch |
_______________________________________________ Do not post admin requests to the list. They will be ignored. Quartzcomposer-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden This email sent to email@hidden
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.