Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
ummwut

Feedback about OpenComputers & Threads

Recommended Posts

I started playing with this mod since it had been added to the Crack Pack modpack (which seems to have replaced ComputerCraft, probably to address balance issues).

 

Anyway, because OC uses Lua in much the same way CC does, it also seems to have the same limitations: parallelization. I'm aware that Lua itself limits how it implements threading (via cooperative subroutines) and in CC I always employed separate computer blocks, basically adding more processors, to address this issue.

 

Pseudo-parallelization has never been an issue when I implement purely event-driven code, but I was almost hoping that a true threading implementation would have made its way into this mod, since the signal API would not pose a limitation, and persistence heavily implies preemptive task managing. As far as I'm aware, Minecraft itself would have no issue launching more Java threads to handle some of the processing, and a thread limit per CPU (obviously tier-dependent) would be simple..

Link to post
Share on other sites

I'm sorry if I came off rude in my previous post.

 

Well, the server suggestion is a great one, I had completely forgotten about it. I guess I'll go dig up that threading API now.

 

The reason for parallelization is a simple one: It can yield a significant speed boost. Even something as simple as an editor with a GUI can be choppy without splitting up the tasks that it does. 

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.