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
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
yes, that library is cross platform.
Thanks!
Everything seems to be going quad core this year, I will need to look into this lib again. ;/
Or cut it short: Avoid threads until you absolutely have to use them because it can lead to a world of hurt :-)
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?