Unity-Technologies / com.unity.webrtc

WebRTC package for Unity
Other
738 stars 185 forks source link

fix: Fix crash when sending videos from multiple peers with DX12 #942

Closed karasusan closed 11 months ago

karasusan commented 11 months ago

There is a previous fix here. https://github.com/Unity-Technologies/com.unity.webrtc/pull/939

ID3D12CommandAllocator::Reset should not be called before the command execution is complete. However, if only one ID3D12CommandAllocator is used, the previous command may not be completed in time.

This fix uses multiple ID3D12CommandAllocator so that the ID3D12CommandAllocator in use is not discarded.