From 64b27b3e1f99f4ee279df06b38a83365acbe5b66 Mon Sep 17 00:00:00 2001 From: Thomas FORGIONE Date: Tue, 30 Jun 2015 13:54:13 +0200 Subject: [PATCH] Removed requestAnimationFrame and replace by setInterval Enables faster streaming (don't ask why) --- js/prototype/main.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/prototype/main.js b/js/prototype/main.js index 149d010..055866b 100644 --- a/js/prototype/main.js +++ b/js/prototype/main.js @@ -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();