measure game loop with avg fps counter