2 ms·
> It removes "managed code tax" for calling into dynamically loaded OpenGL/Vulkan methods Interesting, never heard of that. Do you have a source? I haven’t no
by Const-me 6y ago
> It removes "managed code tax" for calling into dynamically loaded OpenGL/Vulkan methods
Interesting, never heard of that. Do you have a source?
I haven’t noticed much overhead when I measured, take a look: https://github.com/Const-me/ComLightInterop#how-it-works https://github.com/Const-me/ComLightInterop#how-it-works That library compiles and runs with .NET Core 2.1.
Update: also there https://docs.microsoft.com/en-us/cpp/dotnet/calling-native-functions-from-managed-code?view=vs-2019#performance-considerations https://docs.microsoft.com/en-us/cpp/dotnet/calling-native-f... they wrote “PInvoke has an overhead of between 10 and 30 x86 instructions per call”
It roughly corresponds to my observation, and I find it fast enough for all practical applications, including GLES rendering on ARM Linux: https://github.com/Const-me/Vrmac/ https://github.com/Const-me/Vrmac/