-
Notifications
You must be signed in to change notification settings - Fork 5
Configuring computers
ComputerCraft will try to terminate code which has been running for more than 7 seconds. However there may be occasions where you want to tweak this value (such as developing a program, or limiting resources that can be used).
This value can be changed through the Computer.computerThreadTimeout
configuration option.
Warning: Making this value too small may result in computers being terminated when they first turn on.
CCTweaks provides an option to specify the path to the bios file, making it easier to use a custom bios. The specified file is used as the bios for all computers. It is worth noting that the specified file is looked for on the class path: and so must be bundled up into a jar.
When specifying a file, the path must start with a leading /
: if this is not the case or the file cannot be found then the default will be used.
This is configured through the Computer.biosPath
option.
CCTweaks allows executing multiple computers at once, so long running tasks don't block other computers.
Note: This does not work under the LuaJ runtime. Use Cobalt or Rembulam instead.
Warning: This feature is still experimental and so may exhibit different behaviour to vanilla ComputerCraft's handling.
-
Computer.MultiThreading.enabled
: Enable the custom threading system. -
Computer.MultiThreading.threads
: The number of threads on which execute computers. More threads means more computers can execute at once, at the expense of performance. This requiresenabled
to be true.