summaryrefslogtreecommitdiff
path: root/src/defaultsettings.cpp
diff options
context:
space:
mode:
authornumber Zero <silverunicorn2011@yandex.ru>2017-01-12 12:19:36 +0300
committerAuke Kok <sofar@foo-projects.org>2017-04-09 17:30:19 -0700
commit0a8834608d21998bd05b899bd91ddc2196762926 (patch)
treef5b1740d32ce9c70cf04e17a7c62744408a84f83 /src/defaultsettings.cpp
parent8ad3dad137df740ce63101bf224e977e66b9df2c (diff)
downloadminetest-0a8834608d21998bd05b899bd91ddc2196762926.tar.gz
minetest-0a8834608d21998bd05b899bd91ddc2196762926.tar.bz2
minetest-0a8834608d21998bd05b899bd91ddc2196762926.zip
Hard-coded undersampling.
Adds uniform undersampling for the 3D rendered scene. GUI elements are not undersampled, resulting in better playability for users with low-performance platforms with readable fonts and formspecs. The undersampling setting can be set to 0 (disabled), 2, 3, 4 pixels which translates into a resolution reduction of x4, x9 or x16, and is significant.
Diffstat (limited to 'src/defaultsettings.cpp')
-rw-r--r--src/defaultsettings.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/defaultsettings.cpp b/src/defaultsettings.cpp
index 2a49a0eca..c6ced5931 100644
--- a/src/defaultsettings.cpp
+++ b/src/defaultsettings.cpp
@@ -108,6 +108,7 @@ void set_default_settings(Settings *settings)
settings->setDefault("show_debug", "true");
#endif
settings->setDefault("fsaa", "0");
+ settings->setDefault("undersampling", "0");
settings->setDefault("enable_fog", "true");
settings->setDefault("fog_start", "0.4");
settings->setDefault("3d_mode", "none");