This is a common question for which several answers are possible.
Here is my standard text on the question:
Some games are graphics limited like fast action shooters.
Others are cpu core speed limited like strategy, sims, and mmo.
Multiplayer tends to like many threads.
You need to find out which.
------------------------------------------------------------
To help clarify your CPU/GPU options, run these two tests:
a) Run YOUR games, but lower your resolution and eye candy.
If your FPS increases, it indicates that your cpu is strong enough to drive a better graphics configuration.
If your FPS stays the same, you are likely more cpu limited.
b) Limit your cpu, either by reducing the OC, or, in windows power management, limit the maximum cpu% to something like 70%.
Go to control panel/power options/change plan settings/change advanced power settings/processor power management/maximum processor state/
This will simulate what a lack of cpu power will do.
Conversely what a 30% improvement in core speed might do.
You should also experiment with removing one or more cores/threads. You can do this in the windows msconfig boot advanced options option.
You will need to reboot for the change to take effect. Set the number of threads to less than you have.
This will tell you how sensitive your games are to the benefits of many threads.
If you see little difference, your game does not need all the threads you have.
It is possible that both tests are positive, indicating that you have a well balanced system,
and both cpu and gpu need to be upgraded to get better gaming FPS.
-------------------------------------------------------------
My suspicion is that while a GTX1050ti is a nice card, that is likely your limiting factor.
If you upgrade the graphics card, make it a biggish jump or you may be disappointed if you do not see big results.
I think a $350 GTX1060 is not a big enough jump, you are more likely looking at a $450 GTX1070 class card.
The vram you get will be appropriate to the card; do not use specs to decide, tom's gpu hierarchy list is a more reasonable way
to rank choices:
https://www.tomshardware.com/reviews/gpu-hierarchy,4388.html
On the cpu side, there are two aspects.
Most games can not effectively use more than 2-3 threads.
The exception is multiplayer games. For those, increased thread count is important and ryzen is a good value there.
For games like sims, mmo and strategy games, the cpu core speed is all important and Intel excels there.
A 6 thread I5-8600K@5.0, 16gb of DDR4 ram and a Z370 motherboard should be a nice cpu boost for about $550.