execute function at 15 frames per second unity code example Example: unity how to get fps c# print((int)(1.0f / Time.smoothDeltaTime));