It happened more when there were more things on screen and I was firing my weapon, particularly near the final boss (or maybe it was just building up to that point). That was when I set the game down for a moment and noticed it was affecting my whole computer.