What Is Managed Code?

Managed code will be mentioned quite often during the course of this book. The API that will be used throughout the book is called Managed DirectX, and it's not uncommon at all to hear the .NET languages called the managed languages. The managed term comes from the fact that the .NET Runtime has a built-in memory manager.

In the “old days” (you remember, just a few years ago), developers who were writing code in C and C++ would have to do their own memory management. Allocated memory would have to be freed when it was no longer necessary, unless you wanted that memory to “leak,” which could be the cause of horrible performance later on down the line. Even worse, because you were dealing directly with pointers, it's quite ...

Get Beginning 3D Game Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.