low fps and performance when my laptop is connected to the charger (40 fps), not connected (100 fps)

please help me
I don't know what happened, I just play, I don't understand computers

my divice is Alienware m15 r6

11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz 2.30 GHz
NVIDIA GeForce RTX 3070 Laptop GPU
16.0 GB (15.7 GB usable)
64-bit operating system, x64-based processor

Windows 11 Home 22H2