@BlinkRape unreal is pretty unoptimized by default as well. you can make optimized games in them obviously, but there have been problems in the engine that just have never been fixed like shader stuttering.
source engine seems pretty well optimized, but unfortunately you can't really do as much with it unless you just mod the engine like the devs of Titanfall/Apex did.