A 3770 is a better option and will do better in modern AAA games where the extra threads help but I’d be loathed to spend much money on such obsolete hardware.
Normally a cpu will last 2 or more gpu’s for a lot of people if going to a modern platform. Buying a cpu that is close to the end if it’s useful life has to be really cheap in my opinion.Spending money for a second hand processor is much more feasible than upgrading the entire platform for gaming purpose when using a card like 1050Ti.