Jump to content




corountines


  • You cannot reply to this topic
4 replies to this topic

#1 libraryaddict

  • New Members
  • 195 posts

Posted 06 July 2012 - 07: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..

#2 Kolpa

  • New Members
  • 260 posts
  • LocationGermany

Posted 06 July 2012 - 07:46 PM

i think u accidentally a word

#3 MysticT

    Lua Wizard

  • Members
  • 1,597 posts

Posted 06 July 2012 - 07:49 PM

Could you please give us more detail, I don't understand what you'r trying to do and what's the problem.

#4 libraryaddict

  • New Members
  • 195 posts

Posted 07 July 2012 - 11:12 AM

Found my fix :|
I just added a queue event and pull event instead of corountines.

#5 Pinkishu

  • Members
  • 484 posts

Posted 07 July 2012 - 11:40 AM

There wasn't even a coroutine lol
And pullevent just call coroutine.yield too





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users