How to optimize Fortnite for more FPS and less input lag

Performance mode, the DirectX choice, the settings that cost the most in Fortnite, and the Windows side to check first.