I need help, my game constantly crashes, I don't know what to do.

Hello everyone, I am making this post because I have a gigantic problem with my project and it crashes constantly after moving a few minutes on the map.
I'm new to rpgmaker, I'm learning along the way and I suspect that everything is done inefficiently or directly, in a very bad way. While the game works, being inefficiently done, I think the images or events are constantly loading over and over again during gameplay until it starts to lag and ends up crashing. But again, I'm not sure about this and that's why I'm asking for help.
I would prefer to be able to hire someone but apparently I'm not allowed to due to the forum rules, so I appeal to the good will of people who can and want to give me a hand.
I share with you the link to the project and the game exported and some details that might help.

Link: https://drive.google.com/drive/folders/10CKgevEB3sy4o4NA5XgxkYkvZBBYrcqa?usp=drive_link

1. The game crashes (and laggin) when moving a lot between maps or entering new events randomly. In my experience, it happened several times in 30 min of gameplay.

2. The size of each image shown in events is approximately 1 mb+. In this version that I share with you , the size drops a lot due to censorship (I don't share the name of the game as I'm not sure if it would be considered as spam, but the images in the original game are a little more than twice as heavy, as I said before, more than 1 mb per image. In case is needed I can share the 'original' game project too).
I suspect that the problem is that the images (parallax and events) overload the game until it ends up closing, since I have not put any plugin or function to release the images that are NOT being used outside of events.

3. I use a plugin to load ALL images (map and event images) at the start of the game. If I don't do this, the images don't load properly during gameplay or animated events.


4. I have created a system manually so that there are different times in the game (morning, afternoon, evening, night and late night) which is an event that is copied and pasted in each map that is activated in parallel mode.

5. The game has animations (show picture, wait, delete, loop), which is also linked to another event in the same map so that there are dialogs during the animation. I made a copy and paste for the half events of this type, although I think some of them have subtle changes, the general idea is the same.

6. The images are 1355x720 resolution, the game too.

7. There are many files that are not used (maps, characters, pictures, audios, plugins, etc). I have not removed them since I did it before and the game did not run.

8. There are some plugins that I want to change, for example, those of moghunter, they will not be in the near future, for X reasons I still can't do it. I am clarifying this just in case it is something relevant

9. The game uses a parallax plugin for the maps.

10. Most of the dialogs were removed and shortened for the test purpose. They were also changed to the word "line".

11. There are cheats in case someone wants to complete the events (in the house, next to Naruto's Room), plus a plugin to have a journal to guide you through the events.
Hello everyone, I am making this post because I have a gigantic problem with my project and it crashes constantly after moving a few minutes on the map.
I'm new to rpgmaker, I'm learning along the way and I suspect that everything is done inefficiently or directly, in a very bad way. While the game works, being inefficiently done, I think the images or events are constantly loading over and over again during gameplay until it starts to lag and ends up crashing. But again, I'm not sure about this and that's why I'm asking for help.
I would prefer to be able to hire someone but apparently I'm not allowed to due to the forum rules, so I appeal to the good will of people who can and want to give me a hand.
I share with you the link to the project and the game exported and some details that might help.

Link: https://drive.google.com/drive/folders/10CKgevEB3sy4o4NA5XgxkYkvZBBYrcqa?usp=drive_link

1. The game crashes (and laggin) when moving a lot between maps or entering new events randomly. In my experience, it happened several times in 30 min of gameplay.

2. The size of each image shown in events is approximately 1 mb+. In this version that I share with you , the size drops a lot due to censorship (I don't share the name of the game as I'm not sure if it would be considered as spam, but the images in the original game are a little more than twice as heavy, as I said before, more than 1 mb per image. In case is needed I can share the 'original' game project too).
I suspect that the problem is that the images (parallax and events) overload the game until it ends up closing, since I have not put any plugin or function to release the images that are NOT being used outside of events.

3. I use a plugin to load ALL images (map and event images) at the start of the game. If I don't do this, the images don't load properly during gameplay or animated events.


4. I have created a system manually so that there are different times in the game (morning, afternoon, evening, night and late night) which is an event that is copied and pasted in each map that is activated in parallel mode.

5. The game has animations (show picture, wait, delete, loop), which is also linked to another event in the same map so that there are dialogs during the animation. I made a copy and paste for the half events of this type, although I think some of them have subtle changes, the general idea is the same.

6. The images are 1355x720 resolution, the game too.

7. There are many files that are not used (maps, characters, pictures, audios, plugins, etc). I have not removed them since I did it before and the game did not run.

8. There are some plugins that I want to change, for example, those of moghunter, they will not be in the near future, for X reasons I still can't do it. I am clarifying this just in case it is something relevant

9. The game uses a parallax plugin for the maps.

10. Most of the dialogs were removed and shortened for the test purpose. They were also changed to the word "line".

11. There are cheats in case someone wants to complete the events (in the house, next to Naruto's Room), plus a plugin to have a journal to guide you through the events.
If you have a bunch of images that are 1355x720 and you're preloading all of them at the start of the game, you're going to cripple the majority of computers. The thing to keep in mind is that the size of the file on disk is not how much space it takes up in RAM.
If you have a bunch of images that are 1355x720 and you're preloading all of them at the start of the game, you're going to cripple the majority of computers. The thing to keep in mind is that the size of the file on disk is not how much space it takes up in RAM.
So that is the real problem of crashes? Because without preloading parallax and animations looks really laggy, and im guession that is it impossible to have many maps made with own images (parallax) or is there some trick to solve all of this? because I have seen games like fear and hunger that are well optimized and are really big games. It's all too confusing for me, you have any suggestion?, sorry for so many questions
So that is the real problem of crashes? Because without preloading parallax and animations looks really laggy, and im guession that is it impossible to have many maps made with own images (parallax) or is there some trick to solve all of this? because I have seen games like fear and hunger that are well optimized and are really big games. It's all too confusing for me, you have any suggestion?, sorry for so many questions
What you'll find with most if not all games that use parallax mapping is that the image for the map is only loaded into memory when the map itself loads, because it's never needed outside of that. This becomes increasingly important the larger your maps are, which is why parallax mappers tend to work with smaller areas.
I guess I will have to learn in depth about parallax and preloading images, as I understand that those 2 things are the main problem. Really thank you so much for your time and the info!
Here are a few facts that might help you:

1) parallax image maps need several thousand times the RAM of tile-based maps.
That is because in a tile-based map, each tile of 48x48 pixels is defined by a single number.
But in an image, each of those 48x48 pixels need their own color number.

2) as a general guideline, you need a top-of-the-line computer with high RAM to handle a map of 150x150 tiles (7200x7200 pixel)
a lot of modern computers have the limit at 100x100 tiles (4800x4800 pixel).
most older computers can barely handle 50x50 tiles in parallaxing (2400x2400 pixel)
If you want to export to mobile you should try to keep your mapsize below 25x25 tiles as mobiles are especially short on RAM.

All the numbers above are for basic parallaxes, if you have multiple parallaxes as well as light and shadow layers those number drop a lot.

3) aside from parallaxes there are other causes for lag, and if you have a computer that should be able to handle those sizes (and that is likely if you have only parallaxes of 1355x720 pixel) then you most likely have a number of badly designed parallal processes.

4) another cause for problems is that you CANNOT stabiles a map on partial tiles.
For parallax maps to work, the parallax size in pixel needs to be identical to the map size in tiles.
1355 divided by 48 pixel per tile is 28.229 - that is not a full tilesize and cannot be entered into the map properties.
You need to use 28 tiles width, translating to aparallax image of 1344 pixel.
Here are a few facts that might help you:

1) parallax image maps need several thousand times the RAM of tile-based maps.
That is because in a tile-based map, each tile of 48x48 pixels is defined by a single number.
But in an image, each of those 48x48 pixels need their own color number.

2) as a general guideline, you need a top-of-the-line computer with high RAM to handle a map of 150x150 tiles (7200x7200 pixel)
a lot of modern computers have the limit at 100x100 tiles (4800x4800 pixel).
most older computers can barely handle 50x50 tiles in parallaxing (2400x2400 pixel)
If you want to export to mobile you should try to keep your mapsize below 25x25 tiles as mobiles are especially short on RAM.

All the numbers above are for basic parallaxes, if you have multiple parallaxes as well as light and shadow layers those number drop a lot.

3) aside from parallaxes there are other causes for lag, and if you have a computer that should be able to handle those sizes (and that is likely if you have only parallaxes of 1355x720 pixel) then you most likely have a number of badly designed parallal processes.

4) another cause for problems is that you CANNOT stabiles a map on partial tiles.
For parallax maps to work, the parallax size in pixel needs to be identical to the map size in tiles.
1355 divided by 48 pixel per tile is 28.229 - that is not a full tilesize and cannot be entered into the map properties.
You need to use 28 tiles width, translating to aparallax image of 1344 pixel.
I guess it will be better for me to deal with the common system for mapping instead of making parallax maps, it seems to be too complex for my knowledge right now haha, I will try to cut it down and try it without parallax and see how it goes. Thanks a lot for the advice!

Original thread: https://forums.rpgmakerweb.com/threads/i-need-help-my-game-constantly-crashes-i-dont-know-what-to-do.165590/