Re: To Insolor and those interested in dos rescue programme

new topic     » goto parent     » topic index » view thread      » older message » newer message
useless_ said...


Yes, it must task_yield, but the scheduler then won't come back to it for 0.1 seconds, even if all the other tasks yield. And i think that's all you want, is it to check the keybd once every 100ms instead of 3,750,000 times?

I sped up news.e some by not making the main code be a task. I took out a lot of possible places for a task_yield, just by putting one in http.e, which is even more time sensitive than waiting on a human at the keybd. See: http://openeuphoria.org/forum/119025.wc#119025

Just saying, 3,750,000 calls to anything, in order to not use cpu time, seems to be a lot of un-necessary wasted time, especially if the point was to be instantly available for something.

useless

Have you read the thread from the beginning? If you have you may notice that the original empty loop first appeared in the Selgor's post. I just suggested the better (but not the best) way to do pause. Ofcourse there are many even better ways to do this.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu