Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Organize renderers by priority




On Feb 8, 2007, at 5:53 PM, Pierre-Olivier Latour wrote:

This shouldn't be needed: if your movie is a 10FPS movie for instance, the movie patch will only refresh internally at 10FPS and compute / produce a new image when necessary.

I think I did not explain my situation properly.
My Movie is a 30fps movie BUT I would accept it to play "slowly" if the computer is too loaded.
But not the text scrolling. I want this one smooth. Always.
And yes that's right, it renders only the frames needed


Ddoes your performance problem goes away depending on the type of you movie you use? If you just use the movie QCRenderer, is it smooth?


Yes, it depends on the movie.
Actually I have my problem only when two HDs movies are playing at the same time.

Therefore : no, with just the movie renderer, its not smooth.
But I would like the text scrolling to be smooth anyway... to give it a higher priority in a way ...

Try using a custom timebase on the movie patch and pass a value that does not increase continuously but in steps e.g. 0, 0.2, 0.4, 0.6, 0.8, 1.0 over one seconds will produce 5 frames instead of 30FPS

Unfortunately I use a DisplayLink to display movies and not a movie patch.
With code looking like that :


if(QTVisualContextIsNewImageAvailable(qtVisualContext, time)) {
CVOpenGLTextureRef texture = NULL;
if( QTVisualContextCopyImageForTime(qtVisualContext, nil, time, &texture) == noErr ){ // get the texture for the frame
// the above call may produce a null texture so we must check for this first
if(texture != NULL){
//Pass updated movie frames cache to the composition
if(![renderer setValue:(id)texture forInputKey:kVideoImageInputKey])
NSLog(@"Could not pass frames cache to composition");
}
}
CVOpenGLTextureRelease(texture);
return YES;
}

And I have another renderer for the scrolling text...





________________________________________________________
Pierre-Olivier Latour                            email@hidden
Quartz Composer Team Apple Computer, Inc.






www.easyshadow.com

International Corporate Consulting
Palais de la Scala
1 avenue Henri Dunant
Suite 1155
MC - 98000 Monaco

Skype: fabrice.pipart
Tel.  +377 97 98 21 04 (direct)
Fax. +377 97 70 88 07



Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

References: 
 >Set Structure Member Patch 1.0 (From: email@hidden)
 >Organize renderers by priority (From: Fabrice Pipart <email@hidden>)
 >Re: Organize renderers by priority (From: Pierre-Olivier Latour <email@hidden>)
 >Re: Organize renderers by priority (From: Pierre-Olivier Latour <email@hidden>)



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.