diff options
author | Lars Hofhansl <larsh@apache.org> | 2019-07-07 23:23:00 -0700 |
---|---|---|
committer | Lars Hofhansl <larsh@apache.org> | 2019-07-07 23:23:00 -0700 |
commit | 0971a14a57c373330b04d355689553f6ddfa6bcb (patch) | |
tree | 4cffac872c9a3456c30b9d988b90cdf6e75da9c1 /src/serverenvironment.h | |
parent | 3a8ac9b03199cf0773107e58c69dd078892284a2 (diff) | |
download | minetest-0971a14a57c373330b04d355689553f6ddfa6bcb.tar.gz minetest-0971a14a57c373330b04d355689553f6ddfa6bcb.tar.bz2 minetest-0971a14a57c373330b04d355689553f6ddfa6bcb.zip |
Improve ABM time budget handling. #8645
Diffstat (limited to 'src/serverenvironment.h')
-rw-r--r-- | src/serverenvironment.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/serverenvironment.h b/src/serverenvironment.h index 77adcf627..cc4ecd797 100644 --- a/src/serverenvironment.h +++ b/src/serverenvironment.h @@ -26,6 +26,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "server/activeobjectmgr.h" #include "util/numeric.h" #include <set> +#include <random> class IGameDef; class ServerMap; @@ -446,7 +447,6 @@ private: IntervalLimiter m_active_blocks_management_interval; IntervalLimiter m_active_block_modifier_interval; IntervalLimiter m_active_blocks_nodemetadata_interval; - int m_active_block_interval_overload_skip = 0; // Time from the beginning of the game in seconds. // Incremented in step(). u32 m_game_time = 0; @@ -470,6 +470,9 @@ private: PlayerDatabase *m_player_database = nullptr; AuthDatabase *m_auth_database = nullptr; + // Pseudo random generator for shuffling, etc. + std::mt19937 m_rgen; + // Particles IntervalLimiter m_particle_management_interval; std::unordered_map<u32, float> m_particle_spawners; |