For gaming forget about it brah. Moving from an iMac with a mobile graphics chip to a desktop PC with a discrete graphics board is like swapping your moped for a Porsche. If you're a little morally flexible you can install Mac OS X on certain brands of motherboards too and build a Hackintosh. Dual boot into Windows 10 or OSX.
RE: Can I replace my iMac with a DIY PC?