summaryrefslogtreecommitdiff
path: root/src/serverenvironment.h
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/serverenvironment.h
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/serverenvironment.h')
-rw-r--r--src/serverenvironment.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/serverenvironment.h b/src/serverenvironment.h
index cb813155d..a15d87ee2 100644
--- a/src/serverenvironment.h
+++ b/src/serverenvironment.h
@@ -422,8 +422,11 @@ private:
ActiveBlockList m_active_blocks;
IntervalLimiter m_active_blocks_management_interval;
IntervalLimiter m_active_block_modifier_interval;
+ IntervalLimiter m_active_object_interval;
IntervalLimiter m_active_blocks_nodemetadata_interval;
- int m_active_block_interval_overload_skip = 0;
+ float m_active_block_interval_overload_skip = 1.0f;
+ float m_active_object_interval_overload_skip = 1.0f;
+ float m_avg_ao_time = 0.0f;
// Time from the beginning of the game in seconds.
// Incremented in step().
u32 m_game_time = 0;