Skip to content

Commit

Permalink
Removing unnecessary namespace usages, see scenerystack/scenerystack#8
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanolson committed Jan 17, 2025
1 parent 9840e04 commit d37d4ec
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion js/MatrixOps3.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions js/dot.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit d37d4ec

Please sign in to comment.