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)
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)
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.
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.
thank you NeARAZ! anyone else...?
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.
As said, a dynamic branch can skip you unneeded instruction, then again an unrolled loop might be faster than an actual flow-controlled one.
hypnoglow is faster than pixel shader 3
ALL GLORY TO THE HYPNOTOAD
HYPNOTOAD!!!!!!!!!!!!!!!
I bet hypnotoad is using some ps3.0 for it's eye effects!