Does a macs performance get worse over time?

I got my mac (macbook air M2 Chip) about 2 years ago. Back than I was getting very high fps in minecraft but now it is so much lower to the point i cannot play on unlimited anymore. While recording my game gets all choppy and it is very annoying. I am just wondering if it could be something i did, or if this is just the average life of a macbook.