samplelevel hlsl 5.0

Fd80f81596aa1cf809ceb1c2077e190b
0
rouncer 104 Aug 26, 2012 at 17:01

ok, so when I use samplelevel at the 0th level it seems to go slower when i just use sample and autodetect the level. Is samplelevel slow? or is it only going slow because its checking the final level, where sample is picking off mips instead?

i think im right, just clear my mind, thanks.

2 Replies

Please log in or register to post a reply.

A8433b04cb41dd57113740b779f61acb
0
Reedbeta 168 Aug 27, 2012 at 01:50

Forcing things to a lower mip level can indeed make rendering slower since you’ll have more texture cache misses. But I would only expect that to happen when you’re far enough away from the texture that it wouldn’t use the lower mip level at all under standard sampling.

Fd80f81596aa1cf809ceb1c2077e190b
0
rouncer 104 Aug 27, 2012 at 08:18

I am far far away from the texture, its right in the sky looking at a water body - so yeh it comes up.
machine wise you kill me,thanks for the info.