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/EffectQueueFragment.java
63 63

  
64 64
///////////////////////////////////////////////////////////////////////////////////////////////////
65 65
  
66
  void compute(long currTime)
67
    { 
68
    if( currTime==mTime ) return;
69
    if( mTime==0 ) mTime = currTime;
70

  
66
  void compute(long currTime, long step)
67
    {
71 68
    if( mNumEffects>0 )
72 69
      {
73
      long step = (currTime-mTime);
74 70
      float[] array = mUBF.getBackingArray();
75 71

  
76 72
      for(int i=0; i<mNumEffects; i++)
......
81 77
          }
82 78
        }
83 79
      }
84

  
85
    mTime = currTime;  
86 80
    }
87 81

  
88 82
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff