Make rendering in requestAnimationFrame optional.