pouët.net

pixel shader v.2.0 vs v.3.0

category: general [glöplog]
 
hello to all coders and to rest of us :)
I have one rather technical question about pixel shaders. Is there any difference in speed of execution PS v.2 against PS v.3 shader program on Nvidia 6xxx family of graphics card? (supose it is shader that have at the end same visual impression)
added on the 2005-09-11 15:47:35 by calimero calimero
If it's exactly the same instructions - then no, it runs at the same speed :)

However, if the shaders are different (but the end result is the same), then, well, it depends on how they're different. For example, a dynamic branch by itself is a slow thing, but if it can save lots of instructions and has somewhat coherent on-screen pixel patterns, then it's most likely a win.
added on the 2005-09-11 16:49:13 by NeARAZ NeARAZ
thank you NeARAZ! anyone else...?
added on the 2005-09-12 17:07:59 by calimero calimero
It largely depends on the code you write.
As said, a dynamic branch can skip you unneeded instruction, then again an unrolled loop might be faster than an actual flow-controlled one.
added on the 2005-09-12 17:23:23 by Gargaj Gargaj
hypnoglow is faster than pixel shader 3
added on the 2005-09-12 17:28:25 by kusma kusma
ALL GLORY TO THE HYPNOTOAD
BB Image
added on the 2005-09-12 17:44:16 by bartman bartman
HYPNOTOAD!!!!!!!!!!!!!!!
added on the 2005-09-12 18:09:38 by kusma kusma
I bet hypnotoad is using some ps3.0 for it's eye effects!
added on the 2005-09-12 18:32:20 by NeARAZ NeARAZ

login