Revision 79e354b0
Added by Leszek Koltunski over 6 years ago
src/main/java/org/distorted/library/main/DistortedOutputSurface.java | ||
---|---|---|
582 | 582 |
{ |
583 | 583 |
// yes, this DOES keep on working when 'value' overflows into negative territory. |
584 | 584 |
int value = mIntBuffer.get(FRAME_DELAY*mSurfaceID+mLastIndex); |
585 |
|
|
585 |
/* |
|
586 | 586 |
if( value-mLastValue[mLastIndex]!=mLastDiff ) |
587 | 587 |
{ |
588 | 588 |
android.util.Log.d("surface", "id " + mSurfaceID + |
589 |
(mType == TYPE_USER ? " USER" : (mType == TYPE_SYST ? " SYST" : " TREE")) + |
|
590 |
" viewport: (" + mWidth + "x" + mHeight + ") last frame: " + (value - mLastValue[mLastIndex]) |
|
591 |
+ " avg: " + (mAvgSum/RUNNING_AVERAGE) |
|
592 |
); |
|
589 |
(mType == TYPE_USER ? " USER" : (mType == TYPE_SYST ? " SYST" : " TREE")) +
|
|
590 |
" viewport: (" + mWidth + "x" + mHeight + ") last frame: " + (value - mLastValue[mLastIndex])
|
|
591 |
+ " avg: " + (mAvgSum/RUNNING_AVERAGE)
|
|
592 |
);
|
|
593 | 593 |
} |
594 |
|
|
594 |
*/ |
|
595 | 595 |
mLastDiff = value-mLastValue[mLastIndex]; |
596 | 596 |
mLastValue[mLastIndex] = value; |
597 | 597 |
|
Also available in: Unified diff
Improve the 'PostprocessTree' app. Shows bugs in postprocessing.