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/listener/ListenerRenderer.java
166 166
      mScreen.attach(texture,mEffects,mesh);
167 167

  
168 168
      for(int i=0; i<NUM_BUBBLES; i++) randomizeNewBubble();
169
      
169

  
170
      DistortedEffects.enableEffect(EffectNames.DISTORT);
171

  
170 172
      try
171 173
        {
172 174
        Distorted.onCreate(mView.getContext());

Also available in: Unified diff