Lag in Games with Charging

It is possible that your Laptop turns into "Low Performance Mode" while charging it. You should change that setting so it's the same as it is unplugged.