You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whenever one wants users to run their own mun-scripts as a plugin in an application or game there's a risk they make a program that doesn't terminate in time. To improve the user experience in an application, one wants to have a stop button instead of having to restart the whole application. Since rust threads can't be stopped from another thread, it is hard to archive that without support from the program.
In a game, a long running script might have to be paused and resumed to not consume too much resources. In rust you can not pause a thread from the outside so there needs to be support from the program in order to archive this. The same mechanism used for aborting a mun script could perhaps be used in order to pause a script from a different thread? Just stopping a program that has run too long is however a good first step in order to support user provided scripts in a multiplayer game without them ruining the fun for everyone by accident.
The text was updated successfully, but these errors were encountered:
Whenever one wants users to run their own mun-scripts as a plugin in an application or game there's a risk they make a program that doesn't terminate in time. To improve the user experience in an application, one wants to have a stop button instead of having to restart the whole application. Since rust threads can't be stopped from another thread, it is hard to archive that without support from the program.
In a game, a long running script might have to be paused and resumed to not consume too much resources. In rust you can not pause a thread from the outside so there needs to be support from the program in order to archive this. The same mechanism used for aborting a mun script could perhaps be used in order to pause a script from a different thread? Just stopping a program that has run too long is however a good first step in order to support user provided scripts in a multiplayer game without them ruining the fun for everyone by accident.
The text was updated successfully, but these errors were encountered: