I have a custom script I'm writing (mainly to learn RGSS3) in which one aspect is that when it rains, an event spawns from a different, template map to the current map around the player. The event runs for ~25 frames with the 'stepping' graphic of a splash afterwards the event deletes itself. The script works perfectly fine except that after about 1-2 minutes, the frame rate gradually drops to unplayable levels. Here is a link to a demo showing what I'm talking about:
https://www.dropbox.com/s/blm0jsbti80umet/Code%20Test.rar?dl=0
and here is a pastebin link to the code:
http://pastebin.com/4KLG0uSm
I also welcome any advice and tips on how to code better too.
Any help I could get with this would be greatly appreciated!