- Home /
Docs say managed-to-unmanaged calls are very slow on iOS. Why? Will it be fixed?
The page states:
"Managed-to-unmanaged calls are quite processor intensive on iOS. Try to avoid calling multiple native methods per frame."
Why are they so slow? And is it an iOS issue, an issue with Mono on iOS, or a Unity issue? Can it be fixed? Will it be fixed?
$$anonymous$$anaged to Unmanaged calls are usually slightly more intensive because of the switch in context. In a business app, this 'slight' increase is often not a problem, but when you're making games it becomes more of a problem. Whether it is possible to fix is debatable. I will leave it to those more qualified, but you're probably going to find that it can only really be "optimised" rather than fixed.
For example, on a Windows machine using c# to call unmanaged code in the Windows API, the calls there are not very quick either.
Your answer
Follow this Question
Related Questions
Low-level native plugin on iOS 1 Answer
Native Alert on iOS (plugin) 1 Answer
How to get local currency u3dxt 1 Answer
Native GUI-Style on IOS 2 Answers
Access photos, videos & music from iOS and Android library? 0 Answers