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/plainmonalisa/RenderThread.java
33 33
import org.distorted.library.Distorted;
34 34
import org.distorted.library.DistortedEffects;
35 35
import org.distorted.library.DistortedScreen;
36
import org.distorted.library.EffectNames;
36 37
import org.distorted.library.MeshFlat;
37 38
import org.distorted.library.DistortedTexture;
38 39
import org.distorted.library.EffectTypes;
......
216 217
    mScreen.detachAll();
217 218
    mScreen.attach(texture,mEffects,mesh);
218 219

  
220
    DistortedEffects.enableEffect(EffectNames.DISTORT);
221

  
219 222
    try
220 223
      {
221 224
      Distorted.onCreate(mView.getContext());

Also available in: Unified diff