Threads on IOS?

Previous topic - Next topic

tuncy

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

Slydog

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
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
My current project (WIP) :: TwistedMaze <<  [Updated: 2015-11-25]

Kitty Hello

yes, that library is cross platform.

tuncy


bigsofty

Everything seems to be going quad core this year, I will need to look into this lib again.  ;/
Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)

Moru

Or cut it short: Avoid threads until you absolutely have to use them because it can lead to a world of hurt :-)

matchy

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?