D3DDEVINFO_D3D9CACHEUTILIZATION
Microsoft DirectX 9.0 SDK Update (October 2004)

D3DDEVINFO_D3D9CACHEUTILIZATION Structure


Measure the cache hit rate performance for textures and indexed vertices.

Syntax

typedef struct _D3DDEVINFO_D3D9CACHEUTILIZATION {
    FLOAT TextureCacheHitRate;
    FLOAT PostTransformVertexCacheHitRate;
} D3DDEVINFO_D3D9CACHEUTILIZATION;

Members

TextureCacheHitRate
The hit rate for finding a texture in the texture cache. This assumes there is a texture cache. Increasing the level of detail (LOD) bias to use the most detailed texture, using many large textures, or producing a near random texture access pattern on large textures with custom shader code can dramatically affect the texture cache hit rate.
PostTransformVertexCacheHitRate
The hit rate for finding transformed vertices in the vertex cache. The graphics processing unit (GPU) is designed to transform indexed vertices and may store them in a vertex cache. If you are using meshes, D3DXOptimizeFaces or D3DXOptimizeVertices may result in better vertex cache utilization.

Remarks

An efficient cache is typically closer to a 90 percent hit rate, and an inefficient cache is typically closer to a 10 percent hit rate (although a low percentage is not necessarily a problem).

Structure Information

Headerd3d9types.h
Minimum operating systems Windows 98

See Also

IDirect3DQuery9::GetData


© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.