From ee774dce9e474e8ea961bd9b504d26e9321e1b15 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sat, 28 Jun 2014 03:02:25 +0200 Subject: Enhance FloatUtil: More optimizations, concludes commit 0bded476868c5fdfe44502bfd55957469d0d72bb FloatUtil optimizations (unroll and linear memeory access): - transposeMatrix - invertMatrix (diff algo as well - 50% speed bump) - multMatrix - multMatrixVec FloatUtil added - matrixDeterminant(..) FloatUtil removed - Certain FloatBuffer variants are removed or at least marked deprecated. --- src/jogl/classes/jogamp/opengl/ProjectFloat.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/jogl/classes/jogamp/opengl/ProjectFloat.java') diff --git a/src/jogl/classes/jogamp/opengl/ProjectFloat.java b/src/jogl/classes/jogamp/opengl/ProjectFloat.java index 00d1cb64b..91fcbd7a4 100644 --- a/src/jogl/classes/jogamp/opengl/ProjectFloat.java +++ b/src/jogl/classes/jogamp/opengl/ProjectFloat.java @@ -374,7 +374,7 @@ public class ProjectFloat { FloatUtil.multMatrix(projMatrix, modelMatrix, mat4Tmp1); // mat4Tmp1 = Inv(P x M) - if ( null == FloatUtil.invertMatrix(mat4Tmp1, 0, mat4Tmp1, 0, mat4Tmp2) ) { + if ( null == FloatUtil.invertMatrix(mat4Tmp1, mat4Tmp1) ) { return false; } @@ -434,7 +434,7 @@ public class ProjectFloat { FloatUtil.multMatrix(projMatrix, modelMatrix, mat4Tmp1); // mat4Tmp1 = Inv(P x M) - if ( null == FloatUtil.invertMatrix(mat4Tmp1, 0, mat4Tmp1, 0, mat4Tmp2) ) { + if ( null == FloatUtil.invertMatrix(mat4Tmp1, mat4Tmp1) ) { return false; } @@ -530,7 +530,7 @@ public class ProjectFloat { final FloatBuffer obj_pos) { FloatUtil.multMatrix(projMatrix, modelMatrix, mat4Tmp1); - if ( null == FloatUtil.invertMatrix(mat4Tmp1, 0, mat4Tmp1, 0, mat4Tmp2) ) { + if ( null == FloatUtil.invertMatrix(mat4Tmp1, mat4Tmp1) ) { return false; } -- cgit v1.2.3