From f7251df45d11057842862fc5f7afe2870a76a57c Mon Sep 17 00:00:00 2001 From: Brian Peiris Date: Fri, 15 Apr 2016 20:15:31 -0700 Subject: [PATCH] Tweak renderer tests --- examples/tests/renderer-tests.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/examples/tests/renderer-tests.html b/examples/tests/renderer-tests.html index 087f9c83..3931327e 100644 --- a/examples/tests/renderer-tests.html +++ b/examples/tests/renderer-tests.html @@ -274,7 +274,7 @@ } ]; - // tests = tests.filter(test => 'animated cube' === test.name); + //tests = tests.filter(test => 'adding/removing textured cube' === test.name); function init() { window.scene = scene = new THREE.Scene(); @@ -305,7 +305,7 @@ stats.domElement.style.top = '0'; document.body.appendChild(stats.domElement); - // addAxisSpheres(); + addAxisSpheres(); tests. filter(test => test.enabled). @@ -314,11 +314,12 @@ var lastTick = Date.now(); var tick = true; + var limitTicks = -1; var debugInfoShown = false; function animate(elapsed) { requestAnimationFrame(animate); - if (Date.now() - lastTick > 1000) { + if (Date.now() - lastTick > 1000 && limitTicks !== 0) { if (tick) { tests.forEach(test => test.tick && test.tick()); } @@ -327,6 +328,7 @@ } tick = !tick; lastTick = Date.now(); + limitTicks--; } tests.