i was playing sk having lots of lag I accidently unplugged the charger to my laptop and sk started running at 60 fps but then my pc shut down because my computer cant charge. is their some way I could have it when my laptop is plugged in the game will run fast. I was also in high performance mode
There's not much we can do on this end. The issue is that your PC seems to be set the wrong way around: prioritize power saving on charger, prioritize performance on battery.
Go to your power plan settings (Right-click Battery icon > Power Options > Change plan settings (next to your current power plan - High performance) > Change advanced plan settings). From there, check what values are set for On battery, and Plugged in.
Before you make any changes, I'd recommend you make a new plan based on High performance, and then edit Plugged in values so they match On battery, and see how SK handles.
If this fails to work, it may be a hardware issue.