Expense of texture parameter state change
I'm curious - does anyone know how expensive the state change is to change the parameters of a texture? For instance, changing the addressing mode from repeat to clamp, or changing filtering from nearest to linear?
Are they essentially free operations, or is there much time involved?
- Nanoprobe
They're not free operations. But they don't impact things TOO much.
Just what are you trying to do? If it's just a few dozen calls you're worried about, it's all good. But if you do this per poly, you might be killing your performance.
Just what are you trying to do? If it's just a few dozen calls you're worried about, it's all good. But if you do this per poly, you might be killing your performance.
I wouldn't be doing anything like per-poly texture state changes; I was wondering whether or not it's worth the effort of sorting states by texture parameters as well - though if in general usage it's not going to make much of an impact I doubt it's worth doing.
Texture parameter settings are stored per texture object - so sorting with respect to them doesn't make sense anyway - you just need to sort by texture object.
Hope that helped [smile]
Hope that helped [smile]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement