web/scripts/puddi/puddi.js
// The function to be called by the browser at every frame
The function to be called by the browser at every frame
The function to be called by the browser at every frame
function cycle(tFrame) {
    engine._stopCycle = window.requestAnimationFrame(cycle);
    if (update(tFrame) < 0) {
	stop();
	return;
    }
    draw();
}
function cycle ( tFrame ) { engine . _stopCycle = window . requestAnimationFrame ( cycle ) ; if ( update ( tFrame ) < 0 ) { stop ( ) ; return ; } draw ( ) ; }
The function to be called by the browser at every frame
The function to be called by the browser at every frame
// re-register for the next frame // update // draw