Unity-Technologies / com.unity.webrtc

WebRTC package for Unity
Other
739 stars 185 forks source link

Fix cuda resource leak #902

Closed aet closed 1 year ago

aet commented 1 year ago

Mostly just code cleanups for CUDA handling, but should fix resource leaks for D3D12/Vulkan that use mipmappedArray. M92 era branch used to handle calling cuMipmappedArrayDestroy

Can't be sure if this alone fixes all the leaks I've seen, as I'm still using custom frame pooling, scheduling and vulkan changes on my branch, but have to start from somewhere.

BrianHarrisonUnity commented 1 year ago

Looks good to me. When I get a chance I will test this to confirm it resolves the cuda resource leaks I was seeing.

Thanks!