failing at making a consistent framerate