Quantcast
Channel: Questions in topic: "dll"
Viewing all articles
Browse latest Browse all 706

DLL calls (Plugins) way slower within Unity

$
0
0
Hello, I am facing dramatic slow down of my code when using calls to dll form the Plugins folder. Here is the test I have done: - My code is compiled in a bunch of C# and C++ dlls. C++ dlls are native and called within the C# code through specific wrappers. - First test I do is outside Unity: in a dedicated C# console project, I call and measure the performance of the C#/C++ dll. It works fine and runs fast as it should. - Second test I do is inside Unity. I drop my dlls in the Plugins folder and write an identical test within a MonoBehaviour attached to an empty GameObject in a empty scene. The test runs then about 20 times slower. I wonder why I see the slow down when using the code though dlls. Is there any different behaviors between direct calls within a dedicated C# project or within Unity ? I did not find any relevant answers so far when Googling the topic. Thanks for your help!

Viewing all articles
Browse latest Browse all 706

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>