UPDATE: @Arthran has found the leak and patched it. Kudos!
I think I have found a memory leak issue with the Horror Effects plugin from Olivia. Clearing an effect from the player does remove the effect visually, but it seems like every time a new effect is added it just drives up the memory usage more.
I have an item in my game that, when equipped, causes a Glitch effect to occur every 10-20 seconds on the player. It clears after 30 frames. This was causing the game to crash within about 30 minutes.
I tried testing it out without a parallel process event, just one event that would switch between giving you the glitch effect and removing it, and it seems to be the case that it indeed does continually increase memory usage by a few MB each time it is applied. I'm guessing the reason nobody has found this until now is simply because they're not trying to use it in a parallel process event xD Most people will probably not use it so many times that it would matter much.
If anyone could take a look at the plugin for me, or perhaps offer a backup solution, it'd be sweet. I'd let Olivia know about it but I'm not quite sure how to contact them, as comments are disabled on their itch.io page for the plugin and it doesn't look like they have an account here from what I can see.
It's fully possible that this could be an issue on my end as well, so if anyone else has the plugin and would test it so I can rule it out if it is indeed functioning correctly for you, it'd be awesome. I have heard of some people getting memory leaks before swapping to a newer version of nw.js so it's totally possible I just need to do that as well. It's just that I didn't start having this issue until I got to the point in my game where this item is acquired and testing it gave concrete results.
I think I have found a memory leak issue with the Horror Effects plugin from Olivia. Clearing an effect from the player does remove the effect visually, but it seems like every time a new effect is added it just drives up the memory usage more.
I have an item in my game that, when equipped, causes a Glitch effect to occur every 10-20 seconds on the player. It clears after 30 frames. This was causing the game to crash within about 30 minutes.
I tried testing it out without a parallel process event, just one event that would switch between giving you the glitch effect and removing it, and it seems to be the case that it indeed does continually increase memory usage by a few MB each time it is applied. I'm guessing the reason nobody has found this until now is simply because they're not trying to use it in a parallel process event xD Most people will probably not use it so many times that it would matter much.
If anyone could take a look at the plugin for me, or perhaps offer a backup solution, it'd be sweet. I'd let Olivia know about it but I'm not quite sure how to contact them, as comments are disabled on their itch.io page for the plugin and it doesn't look like they have an account here from what I can see.
It's fully possible that this could be an issue on my end as well, so if anyone else has the plugin and would test it so I can rule it out if it is indeed functioning correctly for you, it'd be awesome. I have heard of some people getting memory leaks before swapping to a newer version of nw.js so it's totally possible I just need to do that as well. It's just that I didn't start having this issue until I got to the point in my game where this item is acquired and testing it gave concrete results.