[SOLVED] Pc upgrade question

Nov 8, 2019
1
0
10
I'm currently running this build:

Intel Core i5 6400 @ 2.70GHz
16.0GB RAM 2400mhz
Z170-Gaming K3 motherboard
I think its a 550w psu
and was running a rx580 but got as a gift from a friend the rx5700.

Now since i do realise the cpu is probably bottlenecking the gpu a lot and not letting it perform in its full potential, would it be better if i bought a new motherboard with a i5 9500 or perhaps some ryzen cpu, or for example just simply replace the cpu for a i7-7700 since i figure it would cost me the same as the motherboard and mid range cpu.
Feel free to propose any thoughts and recommendations you have on mind, and also im not budget limited if its worth the buy, but i personally thought the upgrade would cost me around 400-500$.
 
Solution
If you can get a used 7700K on ebay it'll be a little better than a 7700. But just getting a 7700 if nothing else is fine as an upgrade in itself.