5c8040a2cc
These are all based on automated detection (intercept the minetest settings metatable methods) and lack any useful documentation, and may be incomplete (e.g. missing keys that are only discovered at runtime based on specific actions). Eventually these will be filled out and used to document settings, and make it easier to manage settings in the MT Settings UI.
Adds a simple /lag <seconds>
command for anyone with the server
priv. When set to anything above zero, no server step will be allowed to complete in less than that amount of time (it effectively set the minimum lag per step). CPU cycles will be wasted to meet the lag requirement (it's a busy-wait).
This is useful for quickly testing lag-dependent issues such as machines jamming under high lag conditions.
Lag is not preserved across server restarts and is reset to zero.
There is a maximum safe lag level assigned at runtime, which can be overridden by a setting, but changing the setting requires a restart.