This PR fixes the native code of DX12 graphic device to improve performance of the rendering thread. I profiled the loads of the rendering thread, and compared two results. This comparison can show the performance improvement that reduces the loads of waiting time for command buffer to copy texture.
Before
After
We will deal with other graphics device Metal and GLCore near future.
Related this PR. https://github.com/Unity-Technologies/com.unity.webrtc/pull/923
This PR fixes the native code of DX12 graphic device to improve performance of the rendering thread. I profiled the loads of the rendering thread, and compared two results. This comparison can show the performance improvement that reduces the loads of waiting time for command buffer to copy texture.
Before![image](https://github.com/Unity-Technologies/com.unity.webrtc/assets/1132081/8db252ad-3dcb-4f72-80c1-d33626d88427)
After![profile-ssao-dx12](https://github.com/Unity-Technologies/com.unity.webrtc/assets/1132081/730274f8-e228-4b25-a4a4-6fc4000c31eb)
We will deal with other graphics device Metal and GLCore near future.