OBS currently uses an additional DirectX context for GPU encoding when using jim-nvenc. The user requests that OBS use a single DirectX context, as recommended by Nvidia in their Video SDK samples, to potentially improve performance or reduce resource usage.
### Operating System Info Windows 11 ### Other OS _No response_ ### OBS Studio Version Git ### OBS Studio Version (Other) _No response_ ### OBS Studio Log URL https://obsproject.com/logs/l3JZQfAboldVzSMe ### OBS Studio Crash Log URL _No response_ ### Expected Behavior OBS just uses a single DirectX context when using jim-nvenc (see below). This is the recommendation Nvidia gives in their Video SDK samples (https://developer.nvidia.com/video_codec_sdk/downloads/v11-1-5, Nvidia Developer account necessary for download) ### Current Behavior jim-nvenc, like other GPU encoders, creates a dedicated DirectX context (https://github.com/obsproject/obs-studio/blob/master/plugins/obs-ffmpeg/jim-nvenc.c#L290-L340) that is not shared with the rendering context. This does not follow the recommendation in the official samples https://developer.nvidia.com/video_codec_sdk/downloads/v11-1-5 (Nvidia developer account necessary for download) where GPU encoding