adding animation time to framerate
also made lag compensation optional