Skip to content

Do CC threads run inside the normal game loop? #1819

Answered by SquidDev
FireIP asked this question in Q&A
Discussion options

You must be logged in to vote

All Lua code is executed on a separate thread(s)1, as this means misbehaving computers do not stall the main game loop. Some logic is executed on the main thread (for instance, peripheral calls), but these are normally quite fast.

Footnotes

  1. The number of threads can be configured with the computer_threads config option.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@FireIP
Comment options

Answer selected by FireIP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants