-
Do CC threads run inside the normal game loop? Or are they run in parallel? |
Beta Was this translation helpful? Give feedback.
Answered by
SquidDev
May 6, 2024
Replies: 1 comment 1 reply
-
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
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
FireIP
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The number of threads can be configured with the
computer_threads
config option. ↩