Performance Optimization

Every developer who creates real-time applications that use 3D graphics is concerned about performance optimization. This section provides you with guidelines about getting the best performance from your code.

You can use the guidelines in the following sections for any Direct3D application:

·Clip Tests on Execution

·Batching Primitives

·Texture Size

·Triangle Flags

Direct3D applications can use either the ramp driver (for the monochromatic color model) or the RGB driver. The performance notes in the following sections apply to the ramp driver:

·Ramp Performance Tips

·Ramp Textures

·Z-Buffers

·Copy Mode