Frame drops occur when the player gets, uses, or drops gold.

The reason for the lag was the vending machines. I replaced them with item placers, and now the lag is gone.