Is it recommended that calls to SetRenderState happen *every* render cycle in d3d9 or can some render states be set during program startup and never set again?
Is it recommended that calls to SetRenderState happen *every* render cycle in d3d9 or can some render states be set during program startup and never set again?
Some can be set and never set again. Render state optimization used to be huge however has of late been less important as the hardware gets better. However it is my opinion that you can never go wrong with render state optimization and the fewer states you change per frame the better. After all the fastest operations are the one's you do not have to perform.