First, I know someone posted a thread like this but the solutions didn't work for me so I decided to ask. My computer is old so it may affect something (not that old it used to have windows 7 but it was updated to windows 10 so again not windows XP old but definitely may have some issues). also, it's not low on space since I have about 63 GB left and my computer hasn't given me a notification saying my space was low. Also, the lagging issues completely stop when it isn't charging. I've set my battery priority to care more about performance, changed the battery plan, during games I've set the graphics to the lowest possible & yet still it's slow when it's charging.