How to optimize Apex Legends for more FPS and less input lag

The Apex Legends video settings that cost the most, how to cap your frame rate, and the Windows side to check first.