-
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.
It is possible to overload the system with file handles through ComputerCraft. To prevent that CCTweaks provides the Computer.maxFilesHandles
option to limit the number of open file handles a computer can have. This is set to 1024.
CCTweaks provides an option to specify a custom bios path, making it easier to use a custom bios. 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 only works under the Cobalt runtime
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.