Skip to content

Commit

Permalink
Stats on culling examples
Browse files Browse the repository at this point in the history
  • Loading branch information
xeolabs committed Sep 9, 2013
1 parent bffe4d4 commit f54a87a
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion examples/ex/culling/frustum/detailCulling.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<body>

<script src="../../../../api/latest/scenejs.js"></script>
<script src="../../../libs/stats.min.js"></script>

<script>

Expand Down Expand Up @@ -220,14 +221,28 @@
]
}
]
},
}
]
});
}
window.nodes = nodes;
return nodes;
}

// Stats

var stats = new Stats();
stats.domElement.style.position = 'absolute';
stats.domElement.style.top = '0px';
stats.domElement.style.right = '0px';
stats.domElement.style.zIndex = 100;
document.body.appendChild(stats.domElement);
scene.on("tick", function () {
stats.end();
stats.begin();
});


</script>
</body>
</html>

0 comments on commit f54a87a

Please sign in to comment.