Unreal Engine 1 and 2 were f*cking sick. UE3 wasn't bad but that's when the Unreal Engine series really started becoming middleware and losing focus, while idTech went back to its roots of being only for very specific games. UE4 came and it was kinda more of the same in general, but they started diversifying more, and the engine was being used to make TV shows and movies and crap (like The Mandalorian). UE5 turned out to be some real trash, at least as far as optimization goes. Quite the opposite of the engines Tim Sweeney used to make. The dude lost his way years ago. But then again, Epic Games is NOT even remotely the same company as Epic MegaGames. Especially not after Tencent put their dirty grubby hands in the pot.
I will admit that the dev side has been getting better and better, with the tools and support and licensing agreements and whatnot. That's probably one of the reasons why the UE series of engines has proliferated so much. Although in my own experience the Unreal Engine development SDK was always a real f*cking pain in the @ss to integrate with Visual Studio.