Making fps counter more accurate
Updated version of the fps wait calculations