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: 2000 Sprites @ 60 Hz tops ? / Core Kernel slowed down by Inputs ?




Am 26.05.2005 um 22:33 schrieb Pierre-Olivier Latour:

It's already the case: for each iteration, the CI kernel program executes for every pixel, but the CI Kernel patch that wraps it evaluates its inputs only once - the inputs are like constants for the kernel program.


hmm, i suspect I haven't made myself really clear.

In my example "MulleSubdivideImage" (Walk down red "Image Subdivider" (3) -> "Iterator"), there are (differently arranged and simplified to conserve bandwidth) two Core Image Kernels:

JPEG image

both contain the exact same code, namely

kernel vec4 samplePartial( sampler image, float xOff, float yOff, float factor)
{
vec2 xy;
vec2 xy2;


   xy = samplerCoord( image);

   xy2.x = xy.x * factor + xOff;
   xy2.y = xy.y * factor + yOff;

   return sample( image, xy2);
}

if I hook up the "xOff, yOff and factor" to outputs of "iterator Variables" (or its descendants) the image kernel runs faster than the "Image Texturing Matrix". If I use some passed in values (from parent) as input variables, performance drops down to the level of crap -er- crop :)

I would like to understand why that is so and how I can remedy that.

Ciao
    Nat!
------------------------------------------------------
I like the word Irksome, it sounds like it should mean
more than it actually does. -- Chris Redgrave

 _______________________________________________
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: 
 >2000 Sprites @ 60 Hz tops ? / Core Kernel slowed down by Inputs ? (From: Nat! <email@hidden>)
 >Re: 2000 Sprites @ 60 Hz tops ? / Core Kernel slowed down by Inputs ? (From: Pierre-Olivier Latour <email@hidden>)
 >Re: 2000 Sprites @ 60 Hz tops ? / Core Kernel slowed down by Inputs ? (From: Nat! <email@hidden>)
 >Re: 2000 Sprites @ 60 Hz tops ? / Core Kernel slowed down by Inputs ? (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.