SFML community forums
Help => Graphics => Topic started by: smguyk on January 18, 2015, 04:55:55 pm
-
Hi,
what is the upper bound for sf::ContextSettings::antialiasingLevel?
I want my game to support anti-aliasing but I'm not sure which maximum level I should offer as an option. 0 to 8? 0 to 16? Even higher?
And what should the steps be? Single steps or steps of 2 / 4? For example 0, 1, 2, 3, 4, ... or 0, 2, 4, ...?
Thanks
-
Its probably a good idea for things like sampling (MSAA, anisotropic filtering, etc) to be a power of 2 (0, 2, 4, 8, 16). I dont think a lot of games support x16 for a lot of things since it takes a fair amount of computer power. For the upper bound, personally, I'd suggest x8, it seems to be standard across lots of games. You could probably do something ridiculous like x128 or something if you really wanted.
-
Thanks!
-
If you want the maximum anti-aliasing level possible, select a number higher than you need. If it can't use the value because it's too high, it will use the next highest value.
a power of 2 (0, 2, 4, 8, 16)
1 is also a power of 2 so the list is: 0, 1, 2, 4, 8, 16.