Roger Federer will not be fit to compete at the 2016 Olympic Games, after the tennis star was unable to shrug off a knee problem before the competition in Brazil.

After weakening his troubled right knee during his Wimbledon semi-final defeat against Milos Raonic, he has been ruled out of the upcoming games, with the damage being worse than first thought.

“I hope that it hasn’t done me any damage,” Federer originally told reporters after the semi-final.

“I don’t know if it will be three days, one day, or more. At this point I don’t know, but I hope that it isn’t anything serious.”

His worst fears, however, have been realised.

“With regret, I am announcing that I will not be able to represent Switzerland at the Olympic Games in Rio, and that I will also miss out on the rest of the season,” he wrote on his official Facebook page.

“I have many options in mind and after consulting my doctors and my team, I have taken the decision to end the 2016 season for a complete recovery in my knee, after my operation at the start of the year, in order to give it enough time to get back to full strength.

“I am just as motivated, as always, and I will put all of my energy into coming back stronger in 2017.”