Ported (hopefully) everything over to support framerate independence.