Jump to content


samplelevel hlsl 5.0


2 replies to this topic

#1 rouncer

    Senior Member

  • Members
  • PipPipPipPip
  • 2718 posts

Posted 26 August 2012 - 05:01 PM

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.
you used to be able to fit a game on a disk, then you used to be able to fit a game on a cd, then you used to be able to fit a game on a dvd, now you can barely fit one on your harddrive.

#2 Reedbeta

    DevMaster Staff

  • Administrators
  • 5305 posts
  • LocationBellevue, WA

Posted 27 August 2012 - 01:50 AM

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.
reedbeta.com - developer blog, OpenGL demos, and other projects

#3 rouncer

    Senior Member

  • Members
  • PipPipPipPip
  • 2718 posts

Posted 27 August 2012 - 08:18 AM

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.
you used to be able to fit a game on a disk, then you used to be able to fit a game on a cd, then you used to be able to fit a game on a dvd, now you can barely fit one on your harddrive.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users