Add back refreshRate. Support requestAnimationFrame