Ryzen 1600 has 12 threads at $200 or so.
For multithreading and apps that can use many threads it is hard to beat.
The 8350K @$190(4 threads) and 8600K@$300(6 threads) have faster cores which are more useful in gaming.
If budget is not a big concern, the I7-8700K at $390(12 threads) is hard to beat for either gaming or encoding.