1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-17 17:08:39 +00:00

Add an active object step time budget #6721

This can be set via the active_object_interval option.
This commit is contained in:
Lars Hofhansl 2017-12-06 12:21:46 -08:00
parent e049405fdc
commit 9c669016d1
7 changed files with 68 additions and 38 deletions

View file

@ -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;