Reimplementing controlled RAF

Discovered that dev tools screencast turned on was the cause of low fps.