Original Post
hii... I m using Visual Studio 2005(C++) and DirectX 9.0c(June 2006). My main aim is to find the pixel fill rate...I ve found a structure : typedef struct D3DDEVINFO_D3D9BANDWIDTHTIMINGS { FLOAT MaxBandwidthUtilized; FLOAT FrontEndUploadMemoryUtilizedPercent; FLOAT VertexRateUtilizedPercent; FLOAT TriangleSetupRateUtilizedPercent; FLOAT FillRateUtilizedPercent; } D3DDEVINFO_D3D9BANDWIDTHTIMINGS, *LPD3DDEVINFO_D3D9BANDWIDTHTIMINGS I can use the FillRateUtilizedPercent to find the pixel fill rate...BUT to use this structure i need to call the CreateQuery function. hr = d3ddev->CreateQuery(D3DQUERYTYPE_BANDWIDTHTIMINGS , NULL); When i call this function, it keeps returning D3DERR_NOTAVAILABLE instead of D3D_OK... There are various other parameters that can be used with CreateQuery and i checked out all of them..some work and some dont... D3DQUERYTYPE_VCACHE works D3DQUERYTYPE_RESOURCEMANAGER NOT WORKING D3DQUERYTYPE_VERTEXSTATS NOT WORKING D3DQUERYTYPE_EVENT works D3DQUERYTYPE_OCCLUSION works D3DQUERYTYPE_TIMESTAMP works D3DQUERYTYPE_TIMESTAMPDISJOINT works D3DQUERYTYPE_TIMESTAMPFREQ works D3DQUERYTYPE_PIPELINETIMINGS NOT WORKING D3DQUERYTYPE_INTERFACETIMINGS NOT WORKING D3DQUERYTYPE_VERTEXTIMINGS NOT WORKING D3DQUERYTYPE_PIXELTIMINGS NOT WORKING D3DQUERYTYPE_BANDWIDTHTIMINGS NOT WORKING D3DQUERYTYPE_CACHEUTILIZATION NOT WORKING Can anyone pls tell me why some are working and some are not and how to make it work...or some other way to calculate the Pixel Fill Rate... thanks..