> Unity games now ship with IL2CPP, to benefit from AOT compilation
No that is cheating, IL2CPP is a C# to C++ transpiler.. Which is similar to writing a C++ program, interesting technology though.
However it's true Unity also has a Burst compiler which is AOT is release mode and output LLVM IR.
Look that is interesting and that is exactly where I wanted the conversation to go.
GraalVM is generally slower on AOT than on JIT. I expect the same from .NET 7 AOT (haven't checked but is likely true)
Unity Burst is interesting because it leverage an infrastructure that has received an enormous number of human resources and optimizations for AOT (LLVM).
However Unity does not allow to benchmark Burst vs modern .NET JIT so it's very possible that Burst is in many cases slower than .NET JIT. This can't be verified easily and I'm not aware if Burst can be used outside of Unity but I guess one could write the same microbenchmark for both, it's just that no-one did it.
However, Unity has gained a lot of technical debt because its own tooling (and Mono) are stuck on .NET 4.x
They are apparently actively seeking to update their support and will leverage CoreCLR to some extent so maybe once it will be done, comparisons will become easier and they might or not replace Burst by regular CoreCLR, time will tell.
https://forum.unity.com/threads/gdc-2022-the-future-of-net-a...
https://forum.unity.com/threads/net-6-support.1059992/
> Minecraft was rewritten in C++
C++ is faster because it is lower level, my point is Minecraft do not use Java AOT.
and as said many of minecraft stutters are avoidable GC pauses.
It's true 8ms is a tight budget indeed hence why ZGC is a key advance, a place where C# is currently inferior to java.
> The rest is handled on the GPU anyways, AOT compiled
Haha nice try, I appreciate the tentative but I'm not sure you're being right.
regarding the topic of compiling shaders for a 2D GUI, using a JIT is a key advantage, see e.g. https://github.com/blend2d/blend2d
As for GPU drivers (handling openGL/etc) I think its a mix of both but I have forgotten the things I had read about them on phoronix
Most game emulators strongly benefit from JITs shaders too.