Project

General

Profile

« Previous | Next » 

Revision 835b197e

Added by Leszek Koltunski almost 3 years ago

Move the information when was a EffectQueue last time evaluated from the EffectQueues all the way up to the Node which contains them.
The point: we need to reset this time back to 0 every time we attach the Node (and thus start evaluating the Queues inside)

View differences:

src/main/java/org/distorted/library/effectqueue/EffectQueueVertex.java
74 74
 *
75 75
 * @y.exclude
76 76
 */
77
  public void compute(long currTime)
77
  public void compute(long currTime, long step)
78 78
    {
79
    if( currTime==mTime ) return;
80
    if( mTime==0 ) mTime = currTime;
81

  
82 79
    if( mNumEffects>0 )
83 80
      {
84
      long step = (currTime-mTime);
85 81
      float[] array = mUBF.getBackingArray();
86 82

  
87 83
      for(int i=0; i<mNumEffects; i++)
......
94 90

  
95 91
      mUBF.invalidate();
96 92
      }
97

  
98
    mTime = currTime;
99 93
    }
100 94

  
101 95
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff