Optimization ways and how to customize Unreal Engine for your game

Hi, I am making an action adventure game on unreal engine 5, I need methods of optimization and how to customize unreal engine(shaders and other)?