diff --git a/js/MatrixOps3.js b/js/MatrixOps3.js index e58f795..a72d38e 100644 --- a/js/MatrixOps3.js +++ b/js/MatrixOps3.js @@ -24,7 +24,7 @@ const SQRT_HALF = Math.sqrt( 0.5 ); const MatrixOps3 = { // use typed arrays if possible - Array: dot.FastArray, + Array: window.Float64Array ? window.Float64Array : window.Array, /*---------------------------------------------------------------------------* * 3x3 matrix math diff --git a/js/dot.js b/js/dot.js index 5833f60..04eb295 100644 --- a/js/dot.js +++ b/js/dot.js @@ -6,8 +6,5 @@ import Namespace from '../../phet-core/js/Namespace.js'; const dot = new Namespace( 'dot' ); -// TODO: performance: check browser speed to compare how fast this is. We may need to add a 32 option for GL ES. https://github.com/phetsims/dot/issues/96 -dot.register( 'FastArray', window.Float64Array ? window.Float64Array : window.Array ); - // will be filled in by other modules export default dot; \ No newline at end of file