Преглед на файлове

Examples: Avoid logging of time values in loaders.

Mugen87 преди 5 години
родител
ревизия
1aa5faa9e1

+ 0 - 2
examples/js/loaders/LDrawLoader.js

@@ -1030,8 +1030,6 @@ THREE.LDrawLoader = ( function () {
 
 		objectParse: function ( text ) {
 
-			//console.time( 'LDrawLoader' );
-
 			// Retrieve data from the parent parse scope
 			var parentParseScope = this.getParentParseScope();
 

+ 0 - 4
examples/js/loaders/MD2Loader.js

@@ -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
@@ -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;
 
 		};

+ 0 - 4
examples/js/loaders/OBJLoader.js

@@ -401,8 +401,6 @@ THREE.OBJLoader = ( function () {
 
 		parse: function ( text ) {
 
-			console.time( 'OBJLoader' );
-
 			var state = new ParserState();
 
 			if ( text.indexOf( '\r\n' ) !== - 1 ) {
@@ -786,8 +784,6 @@ THREE.OBJLoader = ( function () {
 
 			}
 
-			console.timeEnd( 'OBJLoader' );
-
 			return container;
 
 		}

+ 0 - 12
examples/js/loaders/SVGLoader.js

@@ -1233,8 +1233,6 @@ THREE.SVGLoader.prototype = Object.assign( Object.create( THREE.Loader.prototype
 
 		//
 
-		console.log( 'THREE.SVGLoader' );
-
 		var paths = [];
 
 		var transformStack = [];
@@ -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,
@@ -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;
 
 	}

+ 0 - 2
examples/jsm/loaders/LDrawLoader.js

@@ -1048,8 +1048,6 @@ var LDrawLoader = ( function () {
 
 		objectParse: function ( text ) {
 
-			//console.time( 'LDrawLoader' );
-
 			// Retrieve data from the parent parse scope
 			var parentParseScope = this.getParentParseScope();
 

+ 0 - 4
examples/jsm/loaders/MD2Loader.js

@@ -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
@@ -379,8 +377,6 @@ MD2Loader.prototype = Object.assign( Object.create( Loader.prototype ), {
 
 			geometry.animations = AnimationClip.CreateClipsFromMorphTargetSequences( frames, 10 );
 
-			console.timeEnd( 'MD2Loader' );
-
 			return geometry;
 
 		};

+ 0 - 4
examples/jsm/loaders/OBJLoader.js

@@ -418,8 +418,6 @@ var OBJLoader = ( function () {
 
 		parse: function ( text ) {
 
-			console.time( 'OBJLoader' );
-
 			var state = new ParserState();
 
 			if ( text.indexOf( '\r\n' ) !== - 1 ) {
@@ -803,8 +801,6 @@ var OBJLoader = ( function () {
 
 			}
 
-			console.timeEnd( 'OBJLoader' );
-
 			return container;
 
 		}

+ 0 - 12
examples/jsm/loaders/SVGLoader.js

@@ -1246,8 +1246,6 @@ SVGLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 
 		//
 
-		console.log( 'THREE.SVGLoader' );
-
 		var paths = [];
 
 		var transformStack = [];
@@ -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,
@@ -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;
 
 	}