Memory Issue Help?

So I've heard a lot about memory leaks, cache issues, and other stuff. So What Tips and Tricks are best for fixing / dealing with the memory issues (looking to make our first game soonish), and what size of a game file is considered to much for the game to run?
There are no hard rules. Make sure you're eventing correctly, make sure to check your plugin setup. Make sure to check if any of them cause such issues. Filesize should not affect this by default.
There are no hard rules. Make sure you're eventing correctly, make sure to check your plugin setup. Make sure to check if any of them cause such issues. Filesize should not affect this by default.

W00T! So filesize won't be an issue. And is there any good practices for the image cache? Heard that it can cause problems.

Btw, thank you for your comment. That's a major load off.
What Tips and Tricks are best for fixing / dealing with the memory issues
It's not like there are "the memory issues," things that are inherently wrong with MZ.

As @SGHarlekin said, just like any other kind of programming, you can cause your game to have memory leaks if you do things incorrectly.

So do tutorials, learn how to do different things in a correct and efficient way, and if you do run into problems then you troubleshoot and fix from there. But I don't think I've seen anyone have a legit memory leak unless they chose to manipulate it via a preloader plugin or something which they didn't use correctly.
W00T! So filesize won't be an issue. And is there any good practices for the image cache? Heard that it can cause problems.

Btw, thank you for your comment. That's a major load off.
Pretty much what @ATT_Turan said. The only thing I've ever seen being mentioned in combination with memory leaks are the wrong usage of preloader plugins. They can help reduce lag and such, but using one that's buggy, or using one in a wrong way can cause such behaviour. Other than that.. Things that produce lag are usually poorly programmed common events and poorly used plugins. (Lighting plugins for example have a certain impact on performance, so if you go and plaster a gazillion lights on your map, well yeah, it's gonna lag lol)

Other than that, I don't think you should encounter any performance issues so long as you'r ebeing reaosnable with things.
It's not like there are "the memory issues," things that are inherently wrong with MZ.

As @SGHarlekin said, just like any other kind of programming, you can cause your game to have memory leaks if you do things incorrectly.

So do tutorials, learn how to do different things in a correct and efficient way, and if you do run into problems then you troubleshoot and fix from there. But I don't think I've seen anyone have a legit memory leak unless they chose to manipulate it via a preloader plugin or something which they didn't use correctly.

That's good to know then. Thank you both very much, and that's a massive load off.

Pretty much what @ATT_Turan said. The only thing I've ever seen being mentioned in combination with memory leaks are the wrong usage of preloader plugins. They can help reduce lag and such, but using one that's buggy, or using one in a wrong way can cause such behaviour. Other than that.. Things that produce lag are usually poorly programmed common events and poorly used plugins. (Lighting plugins for example have a certain impact on performance, so if you go and plaster a gazillion lights on your map, well yeah, it's gonna lag lol)

Other than that, I don't think you should encounter any performance issues so long as you'r ebeing reaosnable with things.

Thanks for the clarification, and both you and @ATT_Turan were tremendously helpful. It was much appreciated ^_^.
I need to have this in a copy-pasta form...it's about time because I post this quite often:

RPG Maker is a single threaded/single core, 32 bit program, and hardly takes advantages of the GPU. Most rendering is hardware rendering. So it doesn't matter how many cores your super modern CPU has, RPG Maker can only utilize a single core/thread. MZ is better at utilizing the GPU, but it still doesn't utilize it as much as it should. Therefore, all processing needs to run on that single thread and the result is that things can very quickly begin to bottle neck. This is why we will always recommend using wait frames on parallel events because they will reduce the amount of processing happening on your one and only thread.
Additionally, as a 32bit software, it can only utilize up to a maximum of 4GB of RAM. If you exceed that limit, the software will crash.
It's also for this reason that just because a user has 16, 32, 64, etc GB of RAM doesn't stop the software from crashing due to a memory issue.

That said, I will say it's pretty rare to see a memory-related crash. As long as you aren't doing anything really whacky or have poorly programmed common events and/or plugins it's really tough to get the game to crash naturally from memory.
Memory management is handled with a pretty rudimentary garbage collector, which basically cleans up old and unused references in memory. And "old" is actually really quite aggressive. Iirc, the default garbage collector does a clean up every 5 seconds.
This is where preloaders can become dangerous, because preloaders - depending on the type and how it is programmed - keep a persistent reference to any items you tell the preloaders to load, meaning those items will never get cleaned up by the garbage collector. As one could imagine, that means you could fill up your 4GB pretty quickly.
Iirc, whenever you change maps, it will release any unnecessary references (sprites, sound effects, tiles, whatever else), so within 5 seconds (or however long the default garbage collector is set to) all that old stuff will get cleared when you change maps. So, like I said, it's pretty hard to get a memory-related crash.

So in short; it's not something I would worry about. I would worry more about that single thread for your processing.

Original thread: https://forums.rpgmakerweb.com/threads/memory-issue-help.163458/