mainmenu_csm/builtin/game
Auke Kok 3cef28e731
New timer design.
I could honestly not make much sense of the timer implementation
that was here. Instead I've implemented the type of timer algorithm
that I've used before, and tested it instead.

The concept is extremely simple: all timers are put in an ordered
list. We check every server tick if any of the timers have
elapsed, and execute the function associated with this timer.

We know that many timers by themselves cause new timers to be
added to this list, so we iterate *backwards* over the timer
list. This means that new timers being added while timers are
being executed, can never be executed in the same function pass,
as they are always appended to the table *after* the end of
the table, which we will never reach in the current pass over
all the table elements.

We switch time keeping to minetest.get_us_time(). dtime is
likely unreliable and we have our own high-res timer that we
can fix if it is indeed broken. This removes the need to do
any sort of time keeping.
2022-05-21 16:13:14 +02:00
..
auth.lua SAPI: Track last executed mod and include in error messages 2022-05-21 16:12:46 +02:00
chatcommands.lua Add callback parameter for core.emerge_area() 2022-05-21 16:13:00 +02:00
constants.lua Improve LuaVoxelManip documentation 2022-05-21 16:13:02 +02:00
deprecated.lua Refactor logging 2022-05-21 16:12:54 +02:00
detached_inventory.lua SAPI: Track last executed mod and include in error messages 2022-05-21 16:12:46 +02:00
falling.lua Minor tweaks __builtin:falling_node 2022-05-21 16:12:49 +02:00
features.lua Small fixes of minetest.has_feature 2022-05-21 16:12:50 +02:00
forceloading.lua Fix crash reported here: https://forum.minetest.net/viewtopic.php?f=6&t=9726 2022-05-21 16:11:52 +02:00
init.lua Add callback parameter for core.emerge_area() 2022-05-21 16:13:00 +02:00
item.lua Liquids: Flow into and destroy 'floodable' nodes 2022-05-21 16:13:10 +02:00
item_entity.lua Show infotext with description for item entities 2022-05-21 16:13:13 +02:00
misc.lua New timer design. 2022-05-21 16:13:14 +02:00
mod_profiling.lua Fix retval of entity.get_staticdata beeing lost while profiling is enabled 2022-05-21 16:11:57 +02:00
privileges.lua Use "core" namespace internally 2022-05-21 16:11:41 +02:00
register.lua Liquids: Flow into and destroy 'floodable' nodes 2022-05-21 16:13:10 +02:00
statbars.lua Hud: Modify Y-positioning of health/breath starbars to prevent overlapping with Hotbar 2022-05-21 16:12:21 +02:00
static_spawn.lua Log static_spawn error only once 2022-05-21 16:13:05 +02:00
voxelarea.lua Improved VoxelArea variable locality, thus performance 2022-05-21 16:12:02 +02:00