Skip to content

Commit 097b555

Browse files
authored
Merge pull request #18506 from Mugen87/dev32
Examples: Stop logging time values in loaders.
2 parents 9ece161 + 1aa5faa commit 097b555

File tree

8 files changed

+0
-44
lines changed

8 files changed

+0
-44
lines changed

examples/js/loaders/LDrawLoader.js

-2
Original file line numberDiff line numberDiff line change
@@ -1030,8 +1030,6 @@ THREE.LDrawLoader = ( function () {
10301030

10311031
objectParse: function ( text ) {
10321032

1033-
//console.time( 'LDrawLoader' );
1034-
10351033
// Retrieve data from the parent parse scope
10361034
var parentParseScope = this.getParentParseScope();
10371035

examples/js/loaders/MD2Loader.js

-4
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,6 @@ THREE.MD2Loader.prototype = Object.assign( Object.create( THREE.Loader.prototype
115115

116116
return function ( buffer ) {
117117

118-
console.time( 'MD2Loader' );
119-
120118
var data = new DataView( buffer );
121119

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

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

373-
console.timeEnd( 'MD2Loader' );
374-
375371
return geometry;
376372

377373
};

examples/js/loaders/OBJLoader.js

-4
Original file line numberDiff line numberDiff line change
@@ -401,8 +401,6 @@ THREE.OBJLoader = ( function () {
401401

402402
parse: function ( text ) {
403403

404-
console.time( 'OBJLoader' );
405-
406404
var state = new ParserState();
407405

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

787785
}
788786

789-
console.timeEnd( 'OBJLoader' );
790-
791787
return container;
792788

793789
}

examples/js/loaders/SVGLoader.js

-12
Original file line numberDiff line numberDiff line change
@@ -1233,8 +1233,6 @@ THREE.SVGLoader.prototype = Object.assign( Object.create( THREE.Loader.prototype
12331233

12341234
//
12351235

1236-
console.log( 'THREE.SVGLoader' );
1237-
12381236
var paths = [];
12391237

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

12491247
var currentTransform = new THREE.Matrix3();
12501248

1251-
console.time( 'THREE.SVGLoader: DOMParser' );
1252-
12531249
var xml = new DOMParser().parseFromString( text, 'image/svg+xml' ); // application/xml
12541250

1255-
console.timeEnd( 'THREE.SVGLoader: DOMParser' );
1256-
1257-
console.time( 'THREE.SVGLoader: Parse' );
1258-
12591251
parseNode( xml.documentElement, {
12601252
fill: '#000',
12611253
fillOpacity: 1,
@@ -1269,10 +1261,6 @@ THREE.SVGLoader.prototype = Object.assign( Object.create( THREE.Loader.prototype
12691261
var data = { paths: paths, xml: xml.documentElement };
12701262

12711263
// console.log( paths );
1272-
1273-
1274-
console.timeEnd( 'THREE.SVGLoader: Parse' );
1275-
12761264
return data;
12771265

12781266
}

examples/jsm/loaders/LDrawLoader.js

-2
Original file line numberDiff line numberDiff line change
@@ -1048,8 +1048,6 @@ var LDrawLoader = ( function () {
10481048

10491049
objectParse: function ( text ) {
10501050

1051-
//console.time( 'LDrawLoader' );
1052-
10531051
// Retrieve data from the parent parse scope
10541052
var parentParseScope = this.getParentParseScope();
10551053

examples/jsm/loaders/MD2Loader.js

-4
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,6 @@ MD2Loader.prototype = Object.assign( Object.create( Loader.prototype ), {
124124

125125
return function ( buffer ) {
126126

127-
console.time( 'MD2Loader' );
128-
129127
var data = new DataView( buffer );
130128

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

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

382-
console.timeEnd( 'MD2Loader' );
383-
384380
return geometry;
385381

386382
};

examples/jsm/loaders/OBJLoader.js

-4
Original file line numberDiff line numberDiff line change
@@ -418,8 +418,6 @@ var OBJLoader = ( function () {
418418

419419
parse: function ( text ) {
420420

421-
console.time( 'OBJLoader' );
422-
423421
var state = new ParserState();
424422

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

804802
}
805803

806-
console.timeEnd( 'OBJLoader' );
807-
808804
return container;
809805

810806
}

examples/jsm/loaders/SVGLoader.js

-12
Original file line numberDiff line numberDiff line change
@@ -1246,8 +1246,6 @@ SVGLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
12461246

12471247
//
12481248

1249-
console.log( 'THREE.SVGLoader' );
1250-
12511249
var paths = [];
12521250

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

12621260
var currentTransform = new Matrix3();
12631261

1264-
console.time( 'THREE.SVGLoader: DOMParser' );
1265-
12661262
var xml = new DOMParser().parseFromString( text, 'image/svg+xml' ); // application/xml
12671263

1268-
console.timeEnd( 'THREE.SVGLoader: DOMParser' );
1269-
1270-
console.time( 'THREE.SVGLoader: Parse' );
1271-
12721264
parseNode( xml.documentElement, {
12731265
fill: '#000',
12741266
fillOpacity: 1,
@@ -1282,10 +1274,6 @@ SVGLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
12821274
var data = { paths: paths, xml: xml.documentElement };
12831275

12841276
// console.log( paths );
1285-
1286-
1287-
console.timeEnd( 'THREE.SVGLoader: Parse' );
1288-
12891277
return data;
12901278

12911279
}

0 commit comments

Comments
 (0)