GPUOpen-LibrariesAndSDKs / RadeonProRender-Baikal

MIT License
334 stars 78 forks source link

Windows hangs with NVIDIA card (solution provided) #209

Open harokyang opened 5 years ago

harokyang commented 5 years ago

Already mentioned in project README.md as an known issue Baikal sometimes hangs if using NVIDIA cards

Here is an easy fix for it

In clw_class.h line 38: change the return value type from CLWContext to CLWContext& line 48: add a mutable keyword before CLWContext DONE

CLWContext will be copied and destroyed each frame The hanging always happened at the moment when a duplicated CLWContext destroyed So return a CLWContext reference will eliminate such issue