Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Studio Chat / Multi threading support

Author
Message
Chmava
10
Years of Service
User Offline
Joined: 20th Jun 2013
Location:
Posted: 14th Mar 2019 07:09
Will AppGameKit finally have multitreading support to split up its main thread?

Or will AppGameKit team be like the crysis team and go: In 2 years, there will be 8ghz cpu! So we dump all our AI and world process on a single thread!
That clearly did not happen...

I mean, it does not need to be fully automated and handle by agk, the programmer could handle thread joining manually.

Any discussion appreciated!
Ortu
DBPro Master
16
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Austin, TX
Posted: 14th Mar 2019 17:35
At the very least can we please get async / background media loading!!!
http://games.joshkirklin.com/sulium

A single player RPG featuring a branching, player driven storyline of meaningful choices and multiple endings alongside challenging active combat and intelligent AI.
Kevin Cross
20
Years of Service
User Offline
Joined: 15th Nov 2003
Location: London, UK
Posted: 14th Mar 2019 17:38 Edited at: 14th Mar 2019 17:45
You can run ASync in the background without needing the while loop they show in the examples that freezes the app for a moment while it's waiting for a response. I have it in my app. I don't have ASync media downloading yet but suspect it would be done the same way. I'll be doing it for downloading user profile avatars.

I've updated the code since I shared it ages ago but here was the basic idea for running HTTP ASync requests in the background without freezing the app in anyway. And it allows you to queue ASync requests.

https://forum.thegamecreators.com/thread/222766

I can pull together a more final version that I'm using now if it helps anyone. I may also include it in my OryUI framework at a later date if I can simplify it even more.
OryUI - A WIP AGK2 UI Framework
Ortu
DBPro Master
16
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Austin, TX
Posted: 14th Mar 2019 17:45
You can async the download to file system yes, you can't async loading it to an image/object/sound

img1 = loadImage("file1.png")
Img2 = loadimage("file2.jpg")

2 won't begin until 1 is complete
Nothing else can run until both are complete

Async / background would ideally allow both load in parallel but at minimum even loading them synchronously in the background should not block the rest of the application.
http://games.joshkirklin.com/sulium

A single player RPG featuring a branching, player driven storyline of meaningful choices and multiple endings alongside challenging active combat and intelligent AI.
Kevin Cross
20
Years of Service
User Offline
Joined: 15th Nov 2003
Location: London, UK
Posted: 14th Mar 2019 17:47
Ok sorry, I misunderstood. I thought you referring to downloading files/images from a server in the background.
OryUI - A WIP AGK2 UI Framework
Rick Nasher
6
Years of Service
User Offline
Joined: 25th Jul 2017
Location: Amsterdam
Posted: 16th Mar 2019 17:32
This has my +1 .
DavidAGK
AGK Developer
10
Years of Service
User Offline
Joined: 1st Jan 2014
Location:
Posted: 17th Mar 2019 22:10
Ditto +1
Using Tier 1 AppGameKit V2
Started coding with AMOS (Thanks Francois Lionet)
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 17th Mar 2019 23:12
It will never happen if it's not added to github
Furord
9
Years of Service
User Offline
Joined: 8th Aug 2014
Location:
Posted: 18th Mar 2019 21:03
+1 very necessary to keep growing, that and the ftp commands.
Chmava
10
Years of Service
User Offline
Joined: 20th Jun 2013
Location:
Posted: 27th Mar 2019 06:56 Edited at: 27th Mar 2019 06:57
To be clear, the last few post was talking about multi-threading support... right?

Infact, this should have been first as everything, including the scene editor should be build off every other function and code.

Could someone post it on github or something?

Login to post a reply

Server time is: 2024-04-19 21:31:11
Your offset time is: 2024-04-19 21:31:11