I tried Forza Horizon 3 on my iMac with 580 Pro (Win 10):
1440p, Max Settings, 2xAF, 2xAA - 60fps
4k, Max Settings, no AF, no AA - 31fps
5k, Max Settings, no AF, no AA - 28fps
1440p is the way to go, its the best compromise between performance and visual quality. Indeed, 5k is another level and it looks mind-blowing when I tried it. Wow!
Yes, there are more demanding games out there, but this shows how good this iMac is for gaming. So I would say this is the first iMac you can game on. Sure, a selfmade desktop is cheaper and perhaps faster, but still not bad that gaming isn't a no-go anymore! Very happy with this!