summaryrefslogtreecommitdiff
path: root/src/environment.h
diff options
context:
space:
mode:
authorCraig Robbins <kde.psych@gmail.com>2014-12-07 00:37:37 +1000
committerCraig Robbins <kde.psych@gmail.com>2014-12-07 00:51:01 +1000
commit2b119e1e192ead701e69e261fe94ccb7382dbee7 (patch)
tree19613c0e9baae43b281861ceaa1ecc08b907dba6 /src/environment.h
parent2fd14e1bd53918b3c4fcdfbc81294ff8b7afe1fa (diff)
downloadminetest-2b119e1e192ead701e69e261fe94ccb7382dbee7.tar.gz
minetest-2b119e1e192ead701e69e261fe94ccb7382dbee7.tar.bz2
minetest-2b119e1e192ead701e69e261fe94ccb7382dbee7.zip
Performance of main client loop up to 2x faster In places, up to 3 times faster
NOTE 1: This does not mean a 2x increase in framerate. Increase in fps may be up to 1-2fps NOTE 2: This local 'caching' of settings is not optimal and an alternative solution will be worked on after 0.4.11 is released
Diffstat (limited to 'src/environment.h')
-rw-r--r--src/environment.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/environment.h b/src/environment.h
index 030235826..03c21b08c 100644
--- a/src/environment.h
+++ b/src/environment.h
@@ -121,6 +121,17 @@ protected:
// Overriding the day-night ratio is useful for custom sky visuals
bool m_enable_day_night_ratio_override;
u32 m_day_night_ratio_override;
+
+ /* TODO: Add a callback function so these can be updated when a setting
+ * changes. At this point in time it doesn't matter (e.g. /set
+ * is documented to change server settings only)
+ *
+ * TODO: Local caching of settings is not optimal and should at some stage
+ * be updated to use a global settings object for getting thse values
+ * (as opposed to the this local caching). This can be addressed in
+ * a later release.
+ */
+ bool m_cache_enable_shaders;
private:
JMutex m_lock;