Using Value Types as Objects

One of the biggest questions people ask about writing managed code for things like games is “Is it fast enough?” Speed is very important to an industry that prides itself in getting high-quality games that look near photo-realistic, all in essentially real time. The basic answer is yes, so long as you know how to write high-performance code. Of course, that's the same answer that was given when the switch from assembly to C was made, and that turned out all right.

The .NET Runtime and the C# language have changed the way people write code. They have opened up the world of programming to new developers, and expanded the productivity of the ones that have been around for a while. They handle so many things for you that ...

Get Managed DirectX® 9 Kick Start: Graphics and 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.