Posts by Josh Peterson

Scripting Runtime Improvements in Unity 2018.2

July 11, 201833

We’ve been hard at work improving the updated scripting runtime since our last update. Unity 2018.2 ships with dozens of bug fixes related t... Read more

Updated scripting runtime in Unity 2018.1: What does the future hold?

March 28, 201832

Unity 2018.1 beta now includes a fully-supported, modern .NET runtime. As the .NET ecosystem continues to evolve, Unity is committed to main... Read more

IL2CPP Optimizations: Avoid Boxing

August 11, 201617

In this final episode of our IL2CPP micro-optimization miniseries, we’ll explore the high cost of something called “boxing”, and we’ll see h... Read more

IL2CPP Optimizations: Faster Virtual Method Calls

August 4, 20165

Last time we learned that virtual method calls are slower than direct calls, and we found out how to tell IL2CPP that a given virtual method... Read more

IL2CPP Optimizations: Devirtualization

July 26, 201660

The scripting virtual machine team at Unity is always looking for ways to make your code run faster. This is the first post in a three part ... Read more

IL2CPP Internals: Testing frameworks

July 20, 20157

This is the eighth and final post in the IL2CPP Internals series. In this post I’ll deviate a bit from the content of previous posts, and no... Read more

IL2CPP Internals – Garbage collector integration

July 9, 201510

This is the seventh post in the IL2CPP Internals series. In this post, we will explore a bit about how the IL2CPP runtime integrates with a ... Read more

IL2CPP Internals: P/Invoke Wrappers

July 2, 201510

This is the sixth post in the IL2CPP Internals series. In this post, we will explore how il2cpp.exe generates wrapper methods and types use ... Read more

IL2CPP Internals: Generic sharing implementation

June 16, 201512

This is the fifth post in the IL2CPP Internals series. In the last post, we looked at how methods are called in the C++ code generated for t... Read more

IL2CPP Internals: Method calls

June 3, 201514

This is the fourth blog post in the IL2CPP Internals series. In this post, we will look at how il2cpp.exe generates C++ code for method call... Read more

IL2CPP Internals – Debugging tips for generated code

May 20, 20157

This is the third blog post in the IL2CPP Internals series. In this post, we will explore some tips which make debugging C++ code generated ... Read more

IL2CPP Internals: A Tour of Generated Code

May 13, 201524

This is the second blog post in the IL2CPP Internals series. In this post, we will investigate the C++ code generated by il2cpp.exe. Along t... Read more

An introduction to IL2CPP internals

May 6, 201566

Almost a year ago now, we started to talk about the future of scripting in Unity. The new IL2CPP scripting backend promised to bring a highl... Read more