This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
immibis's profile picture

Configurable task queue size.

Started by immibis, 22 September 2012 - 12:31 PM
immibis #1
Posted 22 September 2012 - 02:31 PM
The task queue size should be configurable. Servers can easily have more than 256 legitimate tasks to run - an example is loading the area around spawn when that area has lots of computers, leaving some of them "half on."

I'm testing changing it to 256000 (instead of 256) on my server to see what other effects it could have. It does seem to fix the "half on" bug.
Cloudy #2
Posted 22 September 2012 - 02:38 PM
The task queue has increased substantially in the next version, so hopefully this should not be a problem. Also, in my opinion the size of a queue is something that is internal and shouldn't be exposed to the end user - but dan may feel differently.
Namarius #3
Posted 22 September 2012 - 09:59 PM
Just a question. Is the task queue the same as the event queue?
immibis #4
Posted 23 September 2012 - 04:02 AM
I don't know.

I had to decrease it to 1024 as it caused several seconds of computer lag at 256000, possibly caused by something spamming the queue?
I'm hoping 1.42 has better queue management if that's the case.