Skip to content

Commit

Permalink
Tweak renderer tests
Browse files Browse the repository at this point in the history
  • Loading branch information
brianpeiris committed Apr 16, 2016
1 parent ad6ac22 commit f7251df
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions examples/tests/renderer-tests.html
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -305,7 +305,7 @@
stats.domElement.style.top = '0';
document.body.appendChild(stats.domElement);

// addAxisSpheres();
addAxisSpheres();

tests.
filter(test => test.enabled).
Expand All @@ -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());
}
Expand All @@ -327,6 +328,7 @@
}
tick = !tick;
lastTick = Date.now();
limitTicks--;
}

tests.
Expand Down

0 comments on commit f7251df

Please sign in to comment.