Updated requestAnmationFrame