Added a framerate timer to keep view in sync and event threads. (Yay multithreading!)