NVIDIA driver has unfixed bug(s) where "realtime" can cause unrecoverable encoding freeze or outright driver crash.This issue happens more frequently with HAGS, in DX12 games or when VRAM is filled close to max capacity.
```C++
D3DKMTSetProcessSchedulingPriorityClass(GetCurrentProcess(), D3DKMT_SCHEDULINGPRIORITYCLASS_REALTIME)
```
NvEncoder::GetEncodedPacket causes/has caused an ANR.
Sse Stream Freezes with high VRAM utilization (and does not recover) · Issue #1031 · LizardByte/Sunshine · GitHub for more details.