Yowza!
So I was retaining an CIImage * sourceImage on
applicationDidFinishLaunching and set the sourceImage for one
renderer, pass it to another, and also show it in a simple preview
window which was also openGL. Id create my CIImage with emptyImage
My patch, with a render timer at 60fps would output around 20/25 fps.
Now, I have:
- (void) applicationDidFinishLaunching:(NSNotification*)aNotification
{
<snip opengl setup and QC patch loading stuff>
sourceImage = [[QCRenderer QCImage] retain]; // I have no clue if
this is correct, but it seems to work.
}
and within my renderers I simply call ofType: as you suggested, like so:
sourceImage = [v001SourceRenderer valueForOutputKey:@"SourceOutput1"
ofType:@"QCImage"];
My FPS now matches exactly that of QC. If I pump up my preferred
rendering speed, I can get a solid 60FPS, which I cant even get QC to
do.
Changing two lines of code, to change my FPS that drastically is huge.
Thanks!
On Feb 8, 2008, at 12:47 PM, Troy Koelling wrote:
It will be better to use that opaque type than CVPixelBuffer because
it will be more flexible. If the internal representation one day
turns out to be a CIImage instead, then passing it as a QCImage will
not make a costly conversion.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]