Unity-Technologies / com.unity.webrtc

WebRTC package for Unity
Other
753 stars 191 forks source link

fix: Reset command buffer allocator once in one frame in DX12 #939

Closed karasusan closed 1 year ago

karasusan commented 1 year ago

The command buffer allocator should be reset once in one frame. According to the API document:

Unlike ID3D12GraphicsCommandList::Reset, it is not recommended that you call Reset on the command allocator while a command list is still being executed.

In the last PR, the copy texture process was changed asyncnous. This is no problem when using one video source. However, it is failed by using multiple video sources.