proper timing calculations + debug fps output