Project

General

Profile

« Previous | Next » 

Revision 604b2899

Added by Leszek Koltunski about 7 years ago

Dynamic display of bounding rectangles (with coords computed by Vertex Shader and gotten with Transform Feedback) works now.

Major problem: the glMapBufferRange() slows doewn rendering in a major way. Multiblur's FPS:

Nexus5X : 35.4 before -> 12.6 after
Nexus4 26.5 before -> ~12 after

View differences:

src/main/java/org/distorted/library/EffectQueueMatrix.java
261 261
    GLES30.glUniformMatrix4fv(mMVPMatrixH, 1, false, mMVPMatrix , 0);
262 262
    }
263 263

  
264
///////////////////////////////////////////////////////////////////////////////////////////////////
265

  
266
  static synchronized void sendZero()
267
    {
268
    Matrix.setIdentityM(mTmpMatrix, 0);
269

  
270
    GLES30.glUniform3f( mObjDH , 0.5f, 0.5f, 0.5f);
271
    GLES30.glUniformMatrix4fv(mMVMatrixH , 1, false, mTmpMatrix , 0);
272
    GLES30.glUniformMatrix4fv(mMVPMatrixH, 1, false, mMVPMatrix , 0);
273
    }
274

  
275 264
///////////////////////////////////////////////////////////////////////////////////////////////////
276 265
// move, scale
277 266

  

Also available in: Unified diff