You can adjust the power settings up to a point, but there's absolutely no way you can run the system at the same speed on battery as you do on AC power - the battery simply cannot supply the power requirements of the system on its own. No notebook will run as fast on battery as on AC power.
I'm running a video process on GPU (RTX 2060) that communicate via socket with another process running on CPU. When the laptop is plugged in, there is no delay either on video or in socket communication. But when the laptop is powered by its battery then there is long delay both in video and communication. I tried to set laptop on high performance but nothing changed. Do you have any idea how can I fix it? PS: The model laptop is the G5 5590 (Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz 2.59 GHz) 
Slower on battery power