A slowdown during online gaming usually points to your internet connection.
If your connection is slow or unstable, games can lag and stutter because they rely on constant data exchange with the server. Try moving closer to your router, using a wired Ethernet connection, or closing other apps that hog bandwidth. That alone often makes a noticeable difference.