Native Assembly Generation

One of the first things that people might notice when they're running managed applications is that the startup time is slower than it is for a “native” application. The major cause of this slowdown is the actual compilation that needs to happen (just in time [JIT] compiling). Because the managed code must be compiled into native code before it's executed, this compilation provides an expected delay when starting the application. Because Managed DirectX is built on top of this system, code you write using the Managed DirectX runtime has this behavior as well.

Because the JIT compilation can do a lot of optimizations that just can't happen during compile time (taking advantage of the actual machine the code is running ...

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.