News for hackers. Stuff that matters.
Re:IL2CPP runtime performance improvements in Unity 2021.2 by Jensson on Sunday February 27, 2022 @04:42AM (#30486759)
All of these operations are so much faster in Microsofts C# (10x - 100x) than it is in the mono used by Unity. Is there really no way to use Microsofts C# here? From what I understand both use the same base C# runtime so it is mainly thanks to better written libraries and code generation, so should help even with IL2CPP.

Stuff like boxing/unboxing, calls using delegates, calling native code, using reflection etc are all much faster in Microsofts version.

Re:IL2CPP runtime performance improvements in Unity 2021.2 by pjmlp on Sunday February 27, 2022 @06:12AM (#30487220)
.NET Core doesn't run in game consoles, and they still rely on Mono for mobile devices.
Re:IL2CPP runtime performance improvements in Unity 2021.2 by wokwokwok on Sunday February 27, 2022 @08:36AM (#30488276)
Yes, but that’s not because it’s impossible… just because unity decided to reengineer an entire language in house to build their product.

Unfortunately, the reality is that Microsoft has more engineers and money devoted to this problem than unity possibly can, so the official c# runtime will continue to support more platforms and being new feature and better performance at a pace that is…

…categorically not possible…

For unity to match.

So… while it’s a bitter pill to swallow, and it was done for reasons that seemed good at the time, it was the wrong choice, and that will become increasingly clear as time rolls on.

There’s what I believe is a pretty classic case of sunk cost fallacy going on with a number of current initiatives in the Unity ecosystem.

Some companies thrive under competition. Some… do not.

Re:IL2CPP runtime performance improvements in Unity 2021.2 by pjmlp on Sunday February 27, 2022 @09:50AM (#30488932)
Except Microsoft is not spending any of their engineers making .NET run on PlayStation, Nintendo or XBox (.NET Native is a bastardised version and UWP is deprecated on the XBox anyway).

Likewise in what concerns iOS, Android and WebAssembly, those same engineers keep using Mono runtime, as apparently there aren't as many resources as you paint.

A good example of the resourcing problem is the ongoing tragedy of migrating the development from UWP into WinUI 3.0/AppSDK

Re:IL2CPP runtime performance improvements in Unity 2021.2 by mbrodersen on Sunday February 27, 2022 @09:00PM (#30495355)
The Microsoft C# compiler team is actually quite small. And the Microsoft C# compiler doesn’t support consoles so no comparison.