Project

General

Profile

« Previous | Next » 

Revision 6637d0f2

Added by Leszek Koltunski about 7 years ago

Speed up shaders (both compilation and execution) by explicitly enabling only the needed effects.

View differences:

src/main/java/org/distorted/examples/effectqueue/EffectQueueRenderer.java
108 108
    mScreen.detachAll();
109 109
    mScreen.attach(mTexture,mEffects,mMesh);
110 110

  
111
    DistortedEffects.enableEffect(EffectNames.DISTORT);
112
    DistortedEffects.enableEffect(EffectNames.SINK);
113
    DistortedEffects.enableEffect(EffectNames.SMOOTH_ALPHA);
114
    DistortedEffects.enableEffect(EffectNames.SATURATION);
115
    DistortedEffects.enableEffect(EffectNames.SMOOTH_CHROMA);
116

  
111 117
    try
112 118
      {
113 119
      Distorted.onCreate(mView.getContext());

Also available in: Unified diff