Bumblebee + OBS studio NVIDIA NVENC

Hello,

This should answer your question partly …

See the available methods here
https://wiki.archlinux.org/title/NVIDIA_Optimus
Optimus-Manager might be the way to go for you. Some games might work better with bumblebee, but overall is known to actually have lower performances and also uses the legacy drivers as explained above.