Lag can also depend on the server you use. Which server and is it close to where you live? Do would play on WiFi? Do you have torrents or lots of users?
Also your device can make a difference. Turn off power saving, close all unnecessary apps. Turn off the graphics effects if needed.
Lag can be fixed in software, its a physical property of the network mostly.