Hello there.
I have a game that’s almost ready and it’s stuttering on low-end Android devices due to JIT spikes. Whenever I call a function for the first time the game stutters but it runs smoothly on the subsequent calls.
It seems RuntimeHelper.PrepareMethod is not available in Unity and I’d like to know if there’s a way to somehow compile the functions without calling them.
I’m 100% sure that the problem is the JIT compilation, not only because of the obvious symptoms but also I asked a friend to profile the scripts in a low-end Android device and he confirmed the problem is that.
Any help is appreciated.