I continued researching and in the end I managed to run the nvidia card as master card using nvidia drivers.
The result is amazing , much better than I did tests with ubuntu, with glxgears :
En ubuntu driver nvidia 5723.304 FPS
En kaosx driver nvidia 7314.391 FPS
En kaosx driver PRIME 1351.106 FPS
En kaosx driver bumblebeep 866.914 FPS
I followed the instructions in this link
pacman -R xf86-video-nouveau
pacman -Rdd libgl
pacman -S nvidia
I modified the my .xinitrc
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
and sddm as puts on the link
/usr/share/sddm/scripts/Xsetup
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
and this is my xorg.conf
Section "ServerLayout"
Identifier "layout"
Screen 1 "nvidia"
Inactive "intel"
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:1:0:0"
EndSection
Section "Screen"
Identifier "nvidia"
Device "nvidia"
Option "AllowEmptyInitialConfiguration" "Yes"
EndSection
Section "Device"
Identifier "intel"
Driver "modesetting"
BusID "PCI:0:2:0"
Option "AccelMethod" "none"
EndSection
Section "Screen"
Identifier "intel"
Device "intel"
EndSection
We lose the ability to switch between cards but we gain in power . I hope it helps you.