I fixed it
I downloaded nividia inspector and turns out while plugged in it was giving me the p0 state wich is the best performance, but when running on the battery it gives me p05 state wich is less than p0 state so i overclocked the p5 state to work as much as the p0 state and it worked fine