Prevent redundant constants register writes – GameDev.net

Prevent redundant constants register writes GameDev.net Is there a way to prevent API calls like SetPixelShaderConstantF() and SetVertexShaderConstantF() from happening if the value written is already there? Also is this a useful optimization and how expensive are many redundant constants register writes …