From http://www.gamedev.net/topic/435995-would-it-be-faster-to-batch-setvertexpixelshaderconstant-calls/
Copy the content here for fear that the link is invalide someday.
------------------------------------------------------------
:
So I would imagine the API call I make most often is SetVertexShaderConstantF.pd3dDevice->SetVertexShaderConstant( 1 ); pd3dDevice->SetVertexShaderConstantF( 1 ); pd3dDevice->SetVertexShaderConstantF( 4 ); pd3dDevice->SetVertexShaderConstantF( 1 );