GLBasic forum

Main forum => GLBasic - en => Topic started by: tuncy on 2012-Feb-28

Title: Threads on IOS?
Post by: tuncy on 2012-Feb-28
Hi,

Just started learning GLBasic. I went through the docs and searched forums and it seems its not possible to use threads in GLBasic when developing for IOS. True?

I'd like to be able to assign one thread that updates the score every n seconds, another one that draws enemy sprites every X ms, scroll background colours every Y ms, etc...

Is the only way to do this is use the main game loop and call subs/functions?

Thanks
Title: Re: Threads on IOS?
Post by: Slydog on 2012-Feb-28
I found this thread topic about a thread library created by Gernot (Kitty Hello):
http://www.glbasic.com/forum/index.php?topic=3642.msg26493#msg26493 (http://www.glbasic.com/forum/index.php?topic=3642.msg26493#msg26493)
The question was asked if it worked on iOS but wasn't answered.
But other topics seemed to elude to the fact that you can.

Ha, ever tried searching for a thread about threads?
Or Googled 'google'? ha   :S
Title: Re: Threads on IOS?
Post by: Kitty Hello on 2012-Feb-29
yes, that library is cross platform.
Title: Re: Threads on IOS?
Post by: tuncy on 2012-Feb-29
Thanks!
Title: Re: Threads on IOS?
Post by: bigsofty on 2012-Feb-29
Everything seems to be going quad core this year, I will need to look into this lib again.  ;/
Title: Re: Threads on IOS?
Post by: Moru on 2012-Mar-01
Or cut it short: Avoid threads until you absolutely have to use them because it can lead to a world of hurt :-)
Title: Re: Threads on IOS?
Post by: matchy on 2012-Mar-01
Quote from: tuncy on 2012-Feb-28
Just started learning GLBasic. I went through the docs and searched forums and it seems its not possible to use threads in GLBasic when developing for IOS. True?
I'd like to be able to assign one thread that updates the score every n seconds, another one that draws enemy sprites every X ms, scroll background colours every Y ms, etc...
Is the only way to do this is use the main game loop and call subs/functions?

Hang on! Why would you presume you require threading to update scores and draws?