Posts by Josh Peterson

Scripting Runtime Improvements in Unity 2018.2

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

July 11, 201833

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

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

March 28, 201832

IL2CPP Optimizations: Avoid Boxing

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

August 11, 201617

IL2CPP Optimizations: Faster Virtual Method Calls

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

August 4, 20165

IL2CPP Optimizations: Devirtualization

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

July 26, 201660

IL2CPP Internals: Testing frameworks

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

July 20, 20157

IL2CPP Internals – Garbage collector integration

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

July 9, 201510

IL2CPP Internals: P/Invoke Wrappers

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

July 2, 201510

IL2CPP Internals: Generic sharing implementation

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

June 16, 201512

IL2CPP Internals: Method calls

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

June 3, 201514

IL2CPP Internals – Debugging tips for generated code

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

May 20, 20157

IL2CPP Internals: A Tour of Generated Code

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

May 13, 201524

An introduction to IL2CPP internals

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

May 6, 201566