danielathome19 / MIDIToComputerCraft

A conversion script for converting MIDI files to executable Lua code for ComputerCraft and the Create mod steam pipes.
Apache License 2.0
22 stars 3 forks source link

[heads up!] CC:T Lua Does support "multithredding" #2

Closed Merith-TK closed 1 year ago

Merith-TK commented 1 year ago

So I saw in the video you mentioned Lua doesnt support multithreadding, But with CC you can do something that is basically the same thing!

https://tweaked.cc/module/parallel.html

its a little weird, but it actually works really well!

danielathome19 commented 1 year ago

I did try using these at one point but found that it was either more accurate without them or about the same; it's close to multithreading, but instead, it constantly switches tasks until one is complete. True concurrency like C# or Golang would be the best solution in general, but it's good enough for what I wanted at least!