As above, if you don’t need portability then use it plugged in for the extra performance. If you do use it mostly plugged in have a look if it has a batter care option. I’ve had a few laptops now that have an option whereby they stop charging at 80% for people that predominantly have the laptop plugged in. This helps with battery life as it best not to keep the battery at 100% all the time.