small adjustment to previous commit

calculate the time until next update as the last operation before
 checking if it's time to update  or not
make the FPS counter as accurate as can be
match FPS up to in-game setting as closely as possible. (the -1)