Oh, GTX 1050 ti and 8GB of ram... that's a little different than what I thought it was. Try recording at 720p and 2 000 kbps and see if the video footage is acceptable to you. As for playing the game... this is what I run the game at when not recording
https://steamcommunity.com/sharedfiles/filedetails/?id=1524579639 and I have a better graphics card than you, so maybe try something similar but less... like, no Anti Aliasing, View Distance at 10, Water Particles at 50%, etc... And, instead of using V-Sync which sucks, try using a frame limiter instead and set it to 60fps or whatever your monitor refresh is.
Basically, start low and work your way up. Also, this is one of those rare games that actually greatly benefits from SSD performance, so if you have one, make sure to have this game installed on it.
OBS is going to be very CPU intensive, and I really don't know how an AMD processor is going to handle that kind of demand. (The reason I switched to Intel so many years ago was because AMD couldn't handle that kind of demand. Sure they were fast, but if given multiple high-load processes, they couldn't keep up.) Fox may have some information in this though.
With the Ryzen line of CPUs, they're actually faster than Intel now with multi-tasking and were advertised to handle recording / streaming much better than Intel. That said, I can't vouch for this game and recording though cuz this game refuses to use the hyper threaded cores which kind of changes things. So, unless you can make OBS use the hyper threaded cores and the game use the real ones... it's basically a minor handicap for AMD with this game while recording right now. Then again... 6 true cores might be enough to handle recording while gaming just fine, mine seems to handle it fine, although, I never made a habit of it... I only ever recorded footage to show someone something... like that stutter issue I was having, etc...
And for the record, yes, Intel still has that per core performance advantage, but that gap is disappearing fast and might be beaten when the 3rd gen 7nm Ryzen comes out in December.
And ya, 8GB of ram is definitely pushing the limits for this game while recording.