How much system memory/RAM does your game use when it's running? How much is normal?
My game goes up to 800mb. Is there any way to keep this low?
Quick question: Memory
● ARCHIVED · READ-ONLY
-
-
it depends on how many pictures and other files you have in your project - and wether or not you used the option to exclude unused files on deployment.
-
I'm not talking about file size but system memory when the game is running.it depends on how many pictures and other files you have in your project - and wether or not you used the option to exclude unused files on deployment.
-
So anytime a graphic is shown, it gets cached in the memory.
You can use script calls to cache specific images and to clear them. Using a script call to clear a cached image when it isn't cached will return an error in the game's console, but it doesn't shut the game down. It can be very tedious and monotonous to manage the memory, but it's good practice to do so.
An example of caching through script calls:
Code:ImageManager.loadParallax("ground19") ImageManager.loadPicture("MAPNAME_homeapt")
An example of clearing cached images through script calls:
Code:ImageManager.cache._inner["img/parallaxes/ground19.png:0"].free() ImageManager.cache._inner["img/pictures/MAPNAME_homeapt.png:0"].free() -
Is there a plugin to do all this automatically?So anytime a graphic is shown, it gets cached in the memory.
You can use script calls to cache specific images and to clear them. Using a script call to clear a cached image when it isn't cached will return an error in the game's console, but it doesn't shut the game down. It can be very tedious and monotonous to manage the memory, but it's good practice to do so.
An example of caching through script calls:
Code:ImageManager.loadParallax("ground19") ImageManager.loadPicture("MAPNAME_homeapt")
An example of clearing cached images through script calls:
Code:ImageManager.cache._inner["img/parallaxes/ground19.png:0"].free() ImageManager.cache._inner["img/pictures/MAPNAME_homeapt.png:0"].free() -
no - the automatic is what is called garbage collection and does not need a plugin.
you'll need a plugin or script commands if you want to manually manage the RAM (either for specific effects or because the automatic is not always the best) - but why should you?
0,8 GB RAM is relatively nothing considering that there are games that require you to have 8 GB RAM (ten times as much) for full quality options.
If this is not just a random interest question I suggest you tell us what your problem is and then we can help. -
the game seems to force close/shutdown with no error message whenever the memory is too high.no - the automatic is what is called garbage collection and does not need a plugin.
you'll need a plugin or script commands if you want to manually manage the RAM (either for specific effects or because the automatic is not always the best) - but why should you?
0,8 GB RAM is relatively nothing considering that there are games that require you to have 8 GB RAM (ten times as much) for full quality options.
If this is not just a random interest question I suggest you tell us what your problem is and then we can help. -
What core Version is your project?
Open the projects rpg_core.js file with a text editor and tell us the number in the title line.
If there is no number or if it is 1.3 or lower, you'll need to update your project. There was a number of memory leaks in the core that were fixed with 1.4 (current Version is 1.6.1).
If you have a newer core, then post Screenshots of your plugin manager - some plugins still have memory leaks, but that can't be changed by Degica, it needs to be solved by the plugin writers. -
Core version is 1.3.4. Memory hovers around 800Mb. If I go in and out of menu repeatedly, it goes up to 1 Gb.What core Version is your project?
Open the projects rpg_core.js file with a text editor and tell us the number in the title line.
If there is no number or if it is 1.3 or lower, you'll need to update your project. There was a number of memory leaks in the core that were fixed with 1.4 (current Version is 1.6.1).
If you have a newer core, then post Screenshots of your plugin manager - some plugins still have memory leaks, but that can't be changed by Degica, it needs to be solved by the plugin writers.
*Interestly, I can make the game crash when copying the game onto a USB memory stick and play it from there. -
Then I suggest making a copy of your project and update it - as said anything before 1.4 contained memory leaks.