Custom Stress function, where to calculate?

New Message Reply Date view Thread view Subject view Author view

Mario Veraart (rioj7++at++fel.tno.nl)
Fri, 06 Oct 95 11:50:11 +0100


Hello performer programmers,

In my application I want to implement my own stress algorithm.
>From a control theory point of view it's bad to use the value of
the control variable to change it's value (stress += stress * scale).
Now I want to find the best place to calculate the stress value
to minimise the latency.
The question is, when is the new value of the channel load available?

I guess it's after the call to pfSync().

Then the code would look like:

   pfSync();

   curLoad = pfGetChanLoad(myChan);
   [calculate stress value, simple algorithm]
   pfChanStress(myChan,newStressVal);

   [some other time critical stuff]
   pfFrame();

Can somebody tell me if this is the best way to do it?
Thanks in advance.

Mario


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:51:56 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.