To optimise your internet for gaming, you can do the following:
Use a wired connection instead of Wi-Fi
Close background applications
Prioritise your gaming device in your router's settings
Ensure your router and modem are up to date
If using a wireless connection, ensure there’s minimal obstruction between your device and the distribution point