Archived

This topic is now archived and is closed to further replies.

malyskolacek

rendering order

Recommended Posts

Is it better to batch the rendering of primitives with same textures or to batch rendering of primitives with same shaders? In other words, is it more expensive to change shaders or textures? Thanks for advice

Share this post


Link to post
Share on other sites
In the GameDev.net column Shader Programming Part I: Fundamentals of Vertex Shaders , in the section titled Setting a Vertex Shader , it says:

"The overhead of this call [SetVertexShader] is lower than a SetTexture() call, so you are able to use it often."

*EDIT for neatness

Come join us on IRC in #directxdev @ irc.afternet.org

[edited by - Tergiver on July 15, 2002 3:56:42 AM]

Share this post


Link to post
Share on other sites