Calculate and show fps in debug mode