   problem about "font-DrawText" when I put it in my code,this's very slow! why?
  this is my code//there draw my mesh    for(int i=0;i<10;i++){ if(rom.b==true){D3DXMatrixTranslation( &matWorld3,rom.x,rom.y,rom.z);g_pd3dDevice->SetTransform(D3DTS_WORLD,&matWorld3 );g_pMesh->DrawSubset( 0 );}}//there draw the fontD3DXFONT_DESC d3dFont;memset(&d3dFont,0,sizeof(d3dFont));d3dFont.Height=25; // in logical unitsd3dFont.Width=12;  // in logical unitsd3dFont.Weight=500;// boldness, range 0(light) - 1000(bold)d3dFont.Italic=FALSE;d3dFont.CharSet=DEFAULT_CHARSET;strcpy(d3dFont.FaceName,"Times New Roman");D3DXCreateFontIndirect(g_pd3dDevice,&d3dFont,&font);RECT rect;SetRect(&rect,0,0,100,100);font->DrawText(NULL,    "Hello World", // String to draw.-1, // Null terminating string.&rect, // Rectangle to draw the string in.DT_TOP | DT_LEFT, // Draw in top-left corner of rect.0xff000000); // Black.// End the sceneg_pd3dDevice->EndScene();}[Edited by - Muhammad Haggag on December 6, 2005 8:53:37 AM]
  Create the font once only during initialization. Font creation takes quite a bit of time.   ;  I know, thanks !   