minetest/builtin
Auke Kok ad884f23d4 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.
2016-01-29 01:04:51 -05:00
..
async Use "core" namespace internally 2014-05-08 13:02:04 -04:00
common Refactor logging 2015-10-14 01:03:54 -04:00
fstk Refactor logging 2015-10-14 01:03:54 -04:00
game New timer design. 2016-01-29 01:04:51 -05:00
mainmenu Fix world config menu ignoring `name` in `mod.conf`. 2016-01-23 21:14:14 -05:00
init.lua Add server side ncurses terminal 2015-11-06 08:51:14 +01:00
settingtypes.txt Add Valleys mapgen. 2016-01-14 05:04:29 +00:00