Removed requestAnimationFrame and replace by setInterval
Enables faster streaming (don't ask why)
This commit is contained in:
parent
cd34bf961e
commit
64b27b3e1f
|
@ -134,6 +134,9 @@ function init() {
|
||||||
|
|
||||||
// Add listeners
|
// Add listeners
|
||||||
initListeners();
|
initListeners();
|
||||||
|
|
||||||
|
// Set interval on animate
|
||||||
|
setInterval(animate, 20);
|
||||||
}
|
}
|
||||||
|
|
||||||
function initListeners() {
|
function initListeners() {
|
||||||
|
@ -219,7 +222,7 @@ function render() {
|
||||||
|
|
||||||
function animate() {
|
function animate() {
|
||||||
// Render each frame
|
// Render each frame
|
||||||
requestAnimationFrame(animate);
|
// requestAnimationFrame(animate);
|
||||||
|
|
||||||
// stats count the number of frames per second
|
// stats count the number of frames per second
|
||||||
stats.begin();
|
stats.begin();
|
||||||
|
|
Loading…
Reference in New Issue