.NET 4 Scripting Runtime and IL2CPP performance issue


#1

Using RVO Simulator with threads causes major performance loss. Using these settings:

Scripting Runtime Version: .NET 4
Scripting Backend: IL2CPP
API Compatibility: .NET 2

If I switch the RVO simulator to not use threads then performance actually improves but is still poor.

Using same project but with Scripting Runtime Version set to .Net 3.5, performance is excellent. I did comment on a bug with random crashes and also a fix for that.


#2

The above images show this bug in action.

My game has 5-10 rvo agents tops. Turning off the threading with .net 4 on ios removed the performance issue.

As you can see I was seeing spikes of 20+ms from RVO simulator.


#3

Hi

Thanks.
I have been able to replicate this issue (though not as extreme as in your screenshots). I’ll try to see if I can find the cause of it.