1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-01-10 09:20:28 +00:00
CC-Tweaked/src/main/java/dan200/computercraft
SquidDev b3e6a53868 Allow pausing Lua machines
TimeoutState now introduces a TIMESLICE, which is the maximum period of
time a computer can run before we will look into pausing it.

When we have executed a task for more than this period, and if there are
other computers waiting to execute work, then we will suspend the
machine.

Suspending the machine sets a flag on the ComputerExecutor, and pauses
the "cumulative" time - the time spent handling this particular event.
When resuming the machine, we restart our timer and resume the machine.
2019-02-28 16:49:06 +00:00
..
api Attach peripherals directly rather than deferring 2019-02-25 19:11:35 +00:00
client Several minor improvements 2019-02-20 09:48:16 +00:00
core Allow pausing Lua machines 2019-02-28 16:49:06 +00:00
shared Several improvements to the computer thread rework 2019-02-27 20:56:45 +00:00
ComputerCraft.java Some further improvements to BlockGeneric 2019-01-25 22:03:44 +00:00