I bought the AMD R5 1600 (no X) in 2017 and overclocked it, ran on that until last year when I bought the Ryzen R7 5800X (no 3D).
This has been fine for me for gaming, I did spend a bit more on GPU, but still I'm doing fine on a modest budget for my PC IMO.
I did throw in a new motherboard for the 5800X, because the newer chipset is supposed to be better for the GPU/CPU communication.
But a 7 year life on the old R5 1600 is insane, and then being able to upgrade to a new CPU on the same motherboard is crazy, although I upgraded the motherboard anyway.