summaryrefslogtreecommitdiff
path: root/src/environment.cpp
diff options
context:
space:
mode:
authorLars Hofhansl <larsh@apache.org>2017-12-06 12:21:46 -0800
committerLars Hofhansl <larsh@apache.org>2017-12-06 12:21:54 -0800
commit9c669016d1578a5c62f932c6ccb7a2b4b1e21f0a (patch)
treef241b088f72e4477d42556c4440432482339b590 /src/environment.cpp
parente049405fdc688a4d619f3ae88008bbe5ee85b569 (diff)
downloadminetest-9c669016d1578a5c62f932c6ccb7a2b4b1e21f0a.tar.gz
minetest-9c669016d1578a5c62f932c6ccb7a2b4b1e21f0a.tar.bz2
minetest-9c669016d1578a5c62f932c6ccb7a2b4b1e21f0a.zip
Add an active object step time budget #6721
This can be set via the active_object_interval option.
Diffstat (limited to 'src/environment.cpp')
-rw-r--r--src/environment.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/environment.cpp b/src/environment.cpp
index f9de13baa..23ec64573 100644
--- a/src/environment.cpp
+++ b/src/environment.cpp
@@ -36,6 +36,7 @@ Environment::Environment(IGameDef *gamedef):
m_cache_enable_shaders = g_settings->getBool("enable_shaders");
m_cache_active_block_mgmt_interval = g_settings->getFloat("active_block_mgmt_interval");
m_cache_abm_interval = g_settings->getFloat("abm_interval");
+ m_cache_ao_interval = g_settings->getFloat("active_object_interval");
m_cache_nodetimer_interval = g_settings->getFloat("nodetimer_interval");
m_time_of_day = g_settings->getU32("world_start_time");