You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SquidDev edited this page Jan 22, 2017
·
1 revision
In vanilla ComputerCraft, computers will run on a single thread, meaning only one can run at once. CCTweaks-Lua allows running several computers at once through the use of multiple threads.
**Warning: ** Multi-threading is disabled by default as some elements of ComputerCraft are not designed to run on multiple threads. Most of the issues encountered have been fixed, but you may still encounter problems.
Some runtimes do not support running under multiple threads. The default LuaJ runtime is one such example of this. Instead, you should use Cobalt). Do note, enabling the multi-threading executor (see below) whilst keeping the thread count at 1 will allow you to use additional features provided by the executor even if the runtime does not support multi-threading.
Configuration
All configuration options live under Computer.MultiThreading:
enabled = false: Whether the multi-threading executor is enabled.
threads = 1: The number of threads to execute computers on. This will be reset to 1 if the runtime does not support multiple threads.
priority = 5: The priority given to computer threads. A lower number means they will take up less CPU time but as a result will run slower. Must be between 1 and 10.