Removed requestAnimationFrame and replace by setInterval

Enables faster streaming (don't ask why)
This commit is contained in:
Thomas FORGIONE 2015-06-30 13:54:13 +02:00
parent cd34bf961e
commit 64b27b3e1f
1 changed files with 4 additions and 1 deletions

View File

@ -134,6 +134,9 @@ function init() {
// Add listeners
initListeners();
// Set interval on animate
setInterval(animate, 20);
}
function initListeners() {
@ -219,7 +222,7 @@ function render() {
function animate() {
// Render each frame
requestAnimationFrame(animate);
// requestAnimationFrame(animate);
// stats count the number of frames per second
stats.begin();