Changed from double to float for delta time variable all over application