1. Play on a cable
Wi-Fi shares the air with the neighbours and other devices. A network cable does not have that problem. If you do only one thing, do this one. Then measure again.
2. If Wi-Fi is unavoidable, close by and on 5 GHz
The 5 GHz band is usually less crowded, but it passes through walls worse. So sit in the same room or near the router. The 2.4 GHz band reaches further and is more crowded.
3. Stop downloads and uploads
When the line is full, the modem's queue fills and game packets wait behind the downloads or get dropped. Close Windows updates, game downloads, cloud backup and video calls while you play. An ADSL line's upload is usually small and fills first.
4. Prioritisation or SQM on the router
Some routers have a QoS or SQM option that keeps the game ahead of the downloads. If yours has it, enter your line's real download and upload speeds a little lower than they are, so the queue forms in your router and not in the modem. If your router does not have it, skip this one.
5. Check the line itself
On ADSL and VDSL, line noise, old wiring or an extra socket creates packet loss. The modem's admin page usually shows numbers such as SNR and attenuation. If the SNR is low or keeps changing, talk to your provider's support and quote those numbers.
6. Measure at different hours
If loss rises only in the evening, the cause is probably congestion on the provider's network, not your home. Knowing that is useful, because nothing at home will change it.
7. Compare with mobile data
Try the game once through your phone's hotspot. If it is better, your home line has a problem. If it is worse, remember mobile swings as well; we wrote about the reasons.
If packets still go missing
Sometimes the problem is not in your home but somewhere along the route that you cannot reach. Loss repair (FEC) is for that case, but it does not replace fixing the simpler problems. These seven first.