Skip to main content
Discovery icon for Minecraft Computer Mods Discord server

Minecraft Computer Mods

2,588 Online
7,346 Members
# computercraft4 people

ComputerCraft performance factors

ComputerCraft performance is primarily affected by yielding functions and peripheral calls, which interact with Minecraft's main thread and make benchmarking complex.

  • Code execution speed in ComputerCraft (CC) is slowed down by any code, but functions that yield (like `sleep` or inventory peripheral calls) are the biggest culprits as they pause the coroutine until the next game tick.
  • CC code runs on a separate thread, so performance involves both pure compute time on the server's CPU and synchronization delays with the main Minecraft world thread, especially for peripheral calls.
  • Benchmarking CC code is difficult because results vary based on server load and scheduling, and are not transferable between different server setups. `os.epoch` can measure it, but the results might be inconsistent.
  • Limitations include a maximum of 127 coroutines and the issue of too many parallel physical actions choking the server, as seen with large furnace arrays or complex emulators.
Summarized from recent messages, might be inaccurate

More conversations

Talk, Play, &
Hang Out

Find your space to hang out, discuss the latest updates with the party chat, and see who's down to join your next match.
Get App