mirror of
https://github.com/minetest-mods/areas.git
synced 2025-07-06 18:10:24 +02:00
Add a refresh delay on globalstep
The globalstep causes re-calculation of area checks for all players on each tick. On larger servers, this quickly becomes a potential source of CPU pressure. This change adds a configurable refresh delay to allow server admins to alleviate the pressure.
This commit is contained in:
@ -44,3 +44,5 @@ file:close()
|
||||
|
||||
setting("filename", "string", world_path.."/areas.dat")
|
||||
|
||||
-- configure the refresh delay for the name displays in the HUD
|
||||
setting("number", "tick", 0.5)
|
||||
|
Reference in New Issue
Block a user