5800x3d vs 5900x

Hi, since using ue5 my fps is halfed. i work on big open world atm got 20fps.

3600 ryzen
2070 super
32gb ram 2667mhz

i dont know which cpu is better just for getting more fps in the editor. Idc baking etc.