Skip to content

Commit

Permalink
Merge pull request mrdoob#18506 from Mugen87/dev32
Browse files Browse the repository at this point in the history
Examples: Stop logging time values in loaders.
  • Loading branch information
mrdoob authored Jan 29, 2020
2 parents 9ece161 + 1aa5faa commit 097b555
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 44 deletions.
2 changes: 0 additions & 2 deletions examples/js/loaders/LDrawLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -1030,8 +1030,6 @@ THREE.LDrawLoader = ( function () {

objectParse: function ( text ) {

//console.time( 'LDrawLoader' );

// Retrieve data from the parent parse scope
var parentParseScope = this.getParentParseScope();

Expand Down
4 changes: 0 additions & 4 deletions examples/js/loaders/MD2Loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,6 @@ THREE.MD2Loader.prototype = Object.assign( Object.create( THREE.Loader.prototype

return function ( buffer ) {

console.time( 'MD2Loader' );

var data = new DataView( buffer );

// http://tfc.duke.free.fr/coding/md2-specs-en.html
Expand Down Expand Up @@ -370,8 +368,6 @@ THREE.MD2Loader.prototype = Object.assign( Object.create( THREE.Loader.prototype

geometry.animations = THREE.AnimationClip.CreateClipsFromMorphTargetSequences( frames, 10 );

console.timeEnd( 'MD2Loader' );

return geometry;

};
Expand Down
4 changes: 0 additions & 4 deletions examples/js/loaders/OBJLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -401,8 +401,6 @@ THREE.OBJLoader = ( function () {

parse: function ( text ) {

console.time( 'OBJLoader' );

var state = new ParserState();

if ( text.indexOf( '\r\n' ) !== - 1 ) {
Expand Down Expand Up @@ -786,8 +784,6 @@ THREE.OBJLoader = ( function () {

}

console.timeEnd( 'OBJLoader' );

return container;

}
Expand Down
12 changes: 0 additions & 12 deletions examples/js/loaders/SVGLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -1233,8 +1233,6 @@ THREE.SVGLoader.prototype = Object.assign( Object.create( THREE.Loader.prototype

//

console.log( 'THREE.SVGLoader' );

var paths = [];

var transformStack = [];
Expand All @@ -1248,14 +1246,8 @@ THREE.SVGLoader.prototype = Object.assign( Object.create( THREE.Loader.prototype

var currentTransform = new THREE.Matrix3();

console.time( 'THREE.SVGLoader: DOMParser' );

var xml = new DOMParser().parseFromString( text, 'image/svg+xml' ); // application/xml

console.timeEnd( 'THREE.SVGLoader: DOMParser' );

console.time( 'THREE.SVGLoader: Parse' );

parseNode( xml.documentElement, {
fill: '#000',
fillOpacity: 1,
Expand All @@ -1269,10 +1261,6 @@ THREE.SVGLoader.prototype = Object.assign( Object.create( THREE.Loader.prototype
var data = { paths: paths, xml: xml.documentElement };

// console.log( paths );


console.timeEnd( 'THREE.SVGLoader: Parse' );

return data;

}
Expand Down
2 changes: 0 additions & 2 deletions examples/jsm/loaders/LDrawLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -1048,8 +1048,6 @@ var LDrawLoader = ( function () {

objectParse: function ( text ) {

//console.time( 'LDrawLoader' );

// Retrieve data from the parent parse scope
var parentParseScope = this.getParentParseScope();

Expand Down
4 changes: 0 additions & 4 deletions examples/jsm/loaders/MD2Loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,6 @@ MD2Loader.prototype = Object.assign( Object.create( Loader.prototype ), {

return function ( buffer ) {

console.time( 'MD2Loader' );

var data = new DataView( buffer );

// http://tfc.duke.free.fr/coding/md2-specs-en.html
Expand Down Expand Up @@ -379,8 +377,6 @@ MD2Loader.prototype = Object.assign( Object.create( Loader.prototype ), {

geometry.animations = AnimationClip.CreateClipsFromMorphTargetSequences( frames, 10 );

console.timeEnd( 'MD2Loader' );

return geometry;

};
Expand Down
4 changes: 0 additions & 4 deletions examples/jsm/loaders/OBJLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -418,8 +418,6 @@ var OBJLoader = ( function () {

parse: function ( text ) {

console.time( 'OBJLoader' );

var state = new ParserState();

if ( text.indexOf( '\r\n' ) !== - 1 ) {
Expand Down Expand Up @@ -803,8 +801,6 @@ var OBJLoader = ( function () {

}

console.timeEnd( 'OBJLoader' );

return container;

}
Expand Down
12 changes: 0 additions & 12 deletions examples/jsm/loaders/SVGLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -1246,8 +1246,6 @@ SVGLoader.prototype = Object.assign( Object.create( Loader.prototype ), {

//

console.log( 'THREE.SVGLoader' );

var paths = [];

var transformStack = [];
Expand All @@ -1261,14 +1259,8 @@ SVGLoader.prototype = Object.assign( Object.create( Loader.prototype ), {

var currentTransform = new Matrix3();

console.time( 'THREE.SVGLoader: DOMParser' );

var xml = new DOMParser().parseFromString( text, 'image/svg+xml' ); // application/xml

console.timeEnd( 'THREE.SVGLoader: DOMParser' );

console.time( 'THREE.SVGLoader: Parse' );

parseNode( xml.documentElement, {
fill: '#000',
fillOpacity: 1,
Expand All @@ -1282,10 +1274,6 @@ SVGLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
var data = { paths: paths, xml: xml.documentElement };

// console.log( paths );


console.timeEnd( 'THREE.SVGLoader: Parse' );

return data;

}
Expand Down

0 comments on commit 097b555

Please sign in to comment.