The main factor contributing to high ping is a bad internet connection. Online games will only lag if your connection speed is fast enough. Hence, a bad internet connection could result from a bad ISP connection or inefficient hardware, like a modem or router.