Shane Ryan set a new Irish record as he finished fourth in the 100m butterfly heats at the Tokyo Olympics.

Ryan shaved six-hundredths of a second off the record set by Ireland team-mate Brendan Hyland last year as he recorded a time of 52.52 seconds in the third heat.

His time was not enough to qualify in the top 16 for the semi-finals, finishing 37th overall - an improvement on his pre-tournament ranking of 48th.

He can proud of his performance after an injury-impacted Games that saw him unable to compete in his favoured 100m backstroke due to persistent shoulder pain.

Ryan becomes the fourth Irish swimmer to set new a national record at Tokyo 2020.

"It's a little unexpected," Ryan told RTÉ. "The 100m butterfly was something I just wanted like a stress-free event.

"I'm super happy to end on that, especially with all of the injuries I’ve been going through. I never swam it like that before and I think I have a lot more to offer."

Ryan made a strong start, which gave him the confidence to kick on. He was placed fourth on the turn and produced an impressive finish to ensure his Olympics ended on a positive note.

"I think I paced it well and am really happy with a PB to end it, especially given the start of the Olympics," said Ryan.

"I've never been through that much stress in my entire life, with the decision to scratch the 100m backstroke.

"I can’t put into words how frustrating it was to pull out, it’s devastating. But in the back of my head I know I went to the Olympic Games with the injuries and my best time would have made the semi-finals.

"I’m still there with some of the best. Just imagine if I didn’t have all those injuries, and how fast I could be.

"I’m really looking forward to train through and go to Paris in 2024."

American Caleb Dressel set a new Olympic record time of 50.39 seconds in the final heat, having won gold in the 100m freestyle earlier on Thursday.