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

corountines

Started by libraryaddict, 06 July 2012 - 06:13 PM
libraryaddict #1
Posted 06 July 2012 - 08:13 PM
Right, I've a program which REALLY hates yielding and arrays..
So Neppy came up with a fix which loves corountine to prevent yielding..

But my problem is this.
The more I call on it, The longer it and slower it runs..
So if I didn't call on it, Then it gets like %1 done in 1 sec.
If I do call on it a few times. Then its %7 in a minute.
But if I called on it much as I can then its %100 in a day.

Get what I mean?

Why is that happening?
And clearly there should be a cleaner fix through I don't like my inner brick wall..
Kolpa #2
Posted 06 July 2012 - 08:46 PM
i think u accidentally a word
MysticT #3
Posted 06 July 2012 - 08:49 PM
Could you please give us more detail, I don't understand what you'r trying to do and what's the problem.
libraryaddict #4
Posted 07 July 2012 - 12:12 PM
Found my fix :|
I just added a queue event and pull event instead of corountines.
Pinkishu #5
Posted 07 July 2012 - 12:40 PM
There wasn't even a coroutine lol
And pullevent just call coroutine.yield too