I just had a freshly installed OBS opened on a new Windows 11 laptop and was telling Windows to use dedicated Nvidia graphics adapter with OBS in high performance mode, to not let windows decide. Changed in System -> Anzeige -> Grafik (english perhaps: System -> Display -> Graphics)