I do almost all of my gaming on an M3 MacBook Air. It’s great for games. I’ll sometimes hop on Windows for titles unavailable on the Mac, but increasingly I just skip them if they aren’t on Steam for MacOS.
The M5's GPU specs seem to put it near a high-end NVIDIA card from 2018. Impressive as all get out for a power-friendly chip, but not really what I think of when I hear "good for gaming"