Original Post
Hi, since the DX10 SDK Docu didnt help me I have to ask here: I have grouped all my global constants in my .fx file into 2 constant buffers: cbuffer perFrame { float foo; ... }; and cbuffer onDemand { float3 bar; ... }; In my application I get access to these variables with: fooSC = effect->GetVariableByName("foo")->AsFloat(); and set the values (either per frame or on demand) with: sunDirSC->SetFloatVector( (float*) &sunDir); But my performance didnt improve at all. Is this normal or did I miss something (additional required steps?)?