Browse Source

Removing timing console.logs in raytracing example

Joshua Koo 9 years ago
parent
commit
5e5c180c64
1 changed files with 2 additions and 7 deletions
  1. 2 7
      examples/js/renderers/RaytracingRenderer.js

+ 2 - 7
examples/js/renderers/RaytracingRenderer.js

@@ -462,8 +462,7 @@ THREE.RaytracingRenderer = function ( parameters ) {
 				blockY += blockSize;
 
 				if ( blockY >= canvasHeight ) {
-					console.log('Total Renderering time', timeRendering / 1000, 's');
-					console.log('Absolute time', (Date.now() - reallyThen) / 1000, 's');
+
 					scope.dispatchEvent( { type: "complete" } );
 					return;
 
@@ -474,11 +473,8 @@ THREE.RaytracingRenderer = function ( parameters ) {
 			context.fillRect( blockX, blockY, blockSize, blockSize );
 
 			animationFrameId = requestAnimationFrame( function () {
-				console.time('render')
-				var then = Date.now();
+
 				renderBlock( blockX, blockY );
-				timeRendering += Date.now() - then;
-				console.timeEnd('render')
 
 			} );
 
@@ -487,7 +483,6 @@ THREE.RaytracingRenderer = function ( parameters ) {
 	}() );
 
 	this.render = function ( scene, camera ) {
-		reallyThen = Date.now()
 
 		if ( this.autoClear === true ) this.clear();