How do I fix the lag

In public matches i get around 15-25 fps doing anything else than standing still, i have a RX 6500 XT, Intel I5-760, 14 gigs of Ram. What are the best optimised settings you would recommend?