window.performance.now() replaced with requestAnimationFrame on iOS