Binding same resource twice

Started by
1 comment, last by LHLaurini 8 years, 3 months ago
Quick and short: if I bind a specific resource to a specific slot, then draw something, then bind the same resource to the same slot again, will D3D notice the resource is already bound and ignore the call or will it perform the same time-consuming operation again or is that defined by the implementation and I should not rely on that?
Advertisement
It might not waste *as much time* as the first call, depending on the driver... But it will definitely waste some time. It's recommended to structure your engine so that you can efficiently avoid redundant calls.

It might not waste *as much time* as the first call, depending on the driver... But it will definitely waste some time. It's recommended to structure your engine so that you can efficiently avoid redundant calls.

Thank you. Exactly what I wanted. Have a nice day.

This topic is closed to new replies.

Advertisement