Ryzen 5 3600 or Ryzen 7 3700x for gaming and unreal engine?

I mainly use my PC for gaming, but i’m also getting more and more into ue4. I found a Ryzen 5 3600 for 175€ and a Ryzen 7 3700x for 300€. How big is the performance difference between these 2 in unreal engine? Would the money difference be better spent on more ram? Im currently rocking a i5-8400 with 16gbs of 3200 RAM.

Really the main difference between the 3600 and 3700x is 2 cores. The extra cores will well help with compiling shaders, lightmass and importing assets. Question is the time you spend waiting worth more or less that the extra 125 you have to spend? Also how is your current amount of ram working out for you? Do you constantly run out of ram?