Ardennesss wrote:FYI, your skybox causes a memory leak by forcing the renderlist to fire nonstop. This is the heap growth over a 60 second period with/without skybox. Figured you'd wanna know.
Skybox :
No Skybox:
shubla wrote:First of all, Nashorn was deprecated and has now been replaced with GraalVM. GraalVM supports much newer version of ECMAScript and is not deprecated.
shubla wrote:Thus you cannot stop your scripts at all by clicking the button while they are running for example. May fix if I come up with some good solution to this issue.
Armis wrote:shubla wrote:Thus you cannot stop your scripts at all by clicking the button while they are running for example. May fix if I come up with some good solution to this issue.
if (aboutToCrash){
dont();
}
shubla wrote:Current issues:
Currently graalvm does not support multithreading, so if you click a button in PBotWindow while the javascript is already running, it will crash.
Thus you cannot stop your scripts at all by clicking the button while they are running for example. May fix if I come up with some good solution to this issue.
If you have any suggestions about how the API could be improved, for example, some functions to add, please tell at the Purus Pasta discord server!
LostJustice wrote:It does support multithreading. You start the thread on the java side and use the java implementation of it. Issue why it crashes it because you are not creating handling or scheduling for activating the button during the click event. Create thread -> Thread does the actual button click -> schedule and start thread.
LostJustice wrote:shubla wrote:Current issues:
Currently graalvm does not support multithreading, so if you click a button in PBotWindow while the javascript is already running, it will crash.
Thus you cannot stop your scripts at all by clicking the button while they are running for example. May fix if I come up with some good solution to this issue.
If you have any suggestions about how the API could be improved, for example, some functions to add, please tell at the Purus Pasta discord server!
It does support multithreading. You start the thread on the java side and use the java implementation of it. Issue why it crashes it because you are not creating handling or scheduling for activating the button during the click event. Create thread -> Thread does the actual button click -> schedule and start thread.
Users browsing this forum: No registered users and 3 guests