|
@@ -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();
|
|
|
|