Rarely, it's the OS being too intensive for the system; you should be fine (in order of increasing price) closing non-essential programs while playing, upgrading RAM, or getting a dedicated graphics card; be wary of the third, since it may heat your computer up a bit more than normal.