Xer0botXer0
Senpai
Hi guys,
So I'm trying to learn a bit more about the technical side of game maker and programming.
And I've stumbled upon threads, from what I understand by a game that runs on one thread is that as an example, when I move a player from x 10 to x 200, and Im also interacting with my inventory, I can see that the player is still moving, so it appears that it's running multiple threads at once, how ever since game maker 1.4 doesn't support multicore processing it means that it's running on a single core, but do single cores have multiple threads ? my guess is that they do but this article said they don't.
If game maker runs on a single core, and the assumption of it running on a single thread is true, then it means that my character is not actually moving at the same time as I'm working on my inventory, rather it's iterating between moving the character and then when Im busy with the inventory like I click on a button, gm picks it up and pauses the character movement to run the latest code, before returning to what it was doing.
In that regard I don't see a problem with it at the moment, but then as I read further along the article it's talking about how some single thread applications have to wait for lines of code to finish running before moving onto the next, Im guessing this is why game maker has asynchronous events, how then does game maker handle asynchronous events ?
I'm not sure where to discuss this type of topic, it's more of a how game maker works, which in turn will allow me to code better in some cases but does involve coding.
So I'm trying to learn a bit more about the technical side of game maker and programming.
And I've stumbled upon threads, from what I understand by a game that runs on one thread is that as an example, when I move a player from x 10 to x 200, and Im also interacting with my inventory, I can see that the player is still moving, so it appears that it's running multiple threads at once, how ever since game maker 1.4 doesn't support multicore processing it means that it's running on a single core, but do single cores have multiple threads ? my guess is that they do but this article said they don't.
If game maker runs on a single core, and the assumption of it running on a single thread is true, then it means that my character is not actually moving at the same time as I'm working on my inventory, rather it's iterating between moving the character and then when Im busy with the inventory like I click on a button, gm picks it up and pauses the character movement to run the latest code, before returning to what it was doing.
In that regard I don't see a problem with it at the moment, but then as I read further along the article it's talking about how some single thread applications have to wait for lines of code to finish running before moving onto the next, Im guessing this is why game maker has asynchronous events, how then does game maker handle asynchronous events ?
I'm not sure where to discuss this type of topic, it's more of a how game maker works, which in turn will allow me to code better in some cases but does involve coding.