Most of it comes down to your connection. A faster, more stable line helps, and so does a machine that isn't struggling to render the game.
A few practical steps: use a wired Ethernet cable instead of Wi-Fi, stop downloads and streams on your network while you play, pick servers geographically close to you, and close background apps that eat bandwidth.