Multithreading Plugin Suite for GBStudio
A downloadable plugin
Three more quality-of-life plugins for GBStudio developers. These will allow you to access GBVM's built-in multithreading capabilities in a way which should be intuitive for beginners to understand. Beware, though, this code is inherently buggy due to data races and technical limitations...don't expect everything to work.
Plugins:
- Multithread Custom Event
- Executes the specified event in a new thread. Only known bug is that variables passed by reference are not modified globally, only locally within the thread. This can create unexpected issues unless handled.
- Oh and actors are practically non-functional. Working on it.
- Wait For Thread
- The current script will pause execution until the specified thread has completed. Sometimes, this can cause an infinite loop, resulting in a game freeze. The cause of this bug is currently unknown.
- Stop Thread
- Stops the specified thread.
What is a thread? A thread is a script that runs at the same time as another script. There are two main ways this is accomplished: through hardware (having more CPU cores, which allows each core to run a different script truly simultaneously), or through software (weaving together the instructions for different scripts like a zipper, and executing them all in order, using fast execution time to make it look like they're being executed simultaneously).
Because the GameBoy doesn't have multiple cores (that I'm aware of), multithreading takes the second form. It's slightly slower than hardware multithreading, but just as effective.
Status | Released |
Category | Game mod |
Author | Cormorant42 |
Tags | gbstudio, multithreading, plugin |
Download
Click download now to get access to the following files:
Comments
Log in with itch.io to leave a comment.
Once you fix those bugs this will be very useful