If you have a lower end pc and want to run UE5 with the same fps you had in UE4 go to Project settings → Shadows, and set Shadow Map method to Shadow Maps instead of Virtual Shadow Maps (Beta), this brought up my fps to what I had on UE4 on my lower end pc. I haven’t checked if changing this breaks any of the new features so use with caution.
And also needed to turn off lumen in DynamicGlobalIllumination.
Thank you so much it worked like a charm. Finally some useful answer.