OMG Memory Hog! Causing PC Crashes! Why? Help!

KillerGin

Freddie
Veteran
Joined
Dec 18, 2015
Messages
455
Reaction score
357
First Language
English
Primarily Uses
N/A
Well, again, that is reported from a tester. I was just playing Killer Gin now checking out my memory (check the pic) I was basically stuck there at approx. 21 MB the whole time. Which is no problem. However when some users using 64 bit pcs are experiencing over 2GB of memory usage I get worried.

Screen Shot 2016-09-19 at 11.21.20 PM.png
 

Leon Kennedy

Restaff Novice
Restaff
Joined
Aug 14, 2016
Messages
613
Reaction score
470
First Language
english
Primarily Uses
RMMV
Well, again, that is reported from a tester. I was just playing Killer Gin now checking out my memory (check the pic) I was basically stuck there at approx. 21 MB the whole time. Which is no problem. However when some users using 64 bit pcs are experiencing over 2GB of memory usage I get worried.


View attachment 47938
Yeah 21k is great, I was just giving the suggestion. Totally understand if you would decide to stay with 1.3.1, another move of all your files would probably be annoying rofl assuming you probably already had to move from 1.3.0 to 1.3.1
 

KillerGin

Freddie
Veteran
Joined
Dec 18, 2015
Messages
455
Reaction score
357
First Language
English
Primarily Uses
N/A
I ran tests on the crappy throw away PC I have at home and the game stayed at 12 MB of memory the whole time.


So the HUGE memory leak only happens on some computers and not others


Killer Gin Memory Stats//////////////////


My Mac = 22MB of memory


My PC = 12MB of memory


My testers (a great guy who is testing my game) PC = 2,500 MB  of memory
 

Leon Kennedy

Restaff Novice
Restaff
Joined
Aug 14, 2016
Messages
613
Reaction score
470
First Language
english
Primarily Uses
RMMV
I ran tests on the crappy throw away PC I have at home and the game stayed at 12 MB of memory the whole time.


So the HUGE memory leak only happens on some computers and not others


Killer Gin Memory Stats//////////////////


My Mac = 22MB of memory


My PC = 12MB of memory


My testers (a great guy who is testing my game) PC = 2,500 MB  of memory
Are you testing full standalone version though or playtest version? A lot of games [mine included] seem to run a ton better in playtest and your tester had to of ran it standalone unless they had the full project and opened it in editor or something.
 
Last edited by a moderator:

KillerGin

Freddie
Veteran
Joined
Dec 18, 2015
Messages
455
Reaction score
357
First Language
English
Primarily Uses
N/A
The throw away PC stats:


i3


4 gigs of ram


Windows 10


Killer Gin Memory Allocation: 12MB


and yes, both the Mac (22MB of memory) and the PC were both running in fully deployed stand alone versions.


/////////////////////////////////////////////


So again to summarize:


My Mac = 22MB of memory (Full Standalone Version)


My PC = 12MB of memory (Full Standalone Version)


My tester (a great guy who is testing my game) PC = 2,500 MB  of memory (Full Standalone Version) Crashing PC!


The HUGE memory leak does not happen on all computers, I believe someone pointed out this is a rendering problem on some 64 bit machines[SIZE= 14px] and[/SIZE] they are working on a fix. The above pics are from a tester. I do not experience these problems on my PC and Mac however since I plan to sell the game commercially, I am worried about my customers. lol. I am really hoping for a fix soon. 
 
Last edited by a moderator:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,370
Reaction score
7,678
First Language
German
Primarily Uses
RMMV
@KillerGin


please do not use blue or red for emphasis as those colors are reserved for moderator messages on this forum
 

KillerGin

Freddie
Veteran
Joined
Dec 18, 2015
Messages
455
Reaction score
357
First Language
English
Primarily Uses
N/A
@Andar


Oops, my apologies, is green and purple ok (most colors are horrible to use if you can't use red and blue)? It's no problem, I understand.


 I would also like to add to the list (List updated).


//////////////////////////


So again to summarize:


My Mac = 22MB of memory (Full Standalone Version)


My PC = 12MB of memory (Full Standalone Version)


My tester (a great guy who is testing my game) PC = 2,500 MB  of memory (Full Standalone Version) Crashing PC!


My Android = ?? Memory (on both Galaxy s6 and s7) = the game runs like crap, especially on s7.


The HUGE memory leak does not happen on all computers, I believe someone pointed out this is a rendering problem. The good thing to note is that usually the massive memory leak is almost immediately evident on infected computers.


There is still a huge issue with the Android build that I hope gets address, as well, because one of the main reasons I bought MV in the first place was so that I can deploy the game on Android.


I know the team is woking hard and I appreciate it, I just hope they are not brushing off the issue with the Android build (or PC memory leak).
 
Last edited by a moderator:

KillerGin

Freddie
Veteran
Joined
Dec 18, 2015
Messages
455
Reaction score
357
First Language
English
Primarily Uses
N/A
@Dad3353 @Andar


@Leon Kennedy @Zalerinian @Shaz


I just had to resurrect this thread because OMG I was so WRONG! RPG Maker MV has a major Memory issue!! 


Before (Above) I stated these numbers:


My Mac = 22MB of memory (Full Standalone Version)


My PC = 12MB of memory (Full Standalone Version)


Which was accurate but I failed to realize that when the game opens, it opens other processes as well! Most notably the "NWJS Helper" for the Mac and oh boy is it a memory hog! The only reason why I never notice how much of a memory hog it truly is, is because my Mac is a Mac Book Pro 2014 model with 16 GB of RAM. (I don't play the PC version to notice the sudden annihilation of RAM) 


I ran two trials on the my Mac Book Pro 2014 and these are the results:


/////////////////////////


 


My version of RPG Maker MV (Mac STEAM Version (YES, up to date with version 1.3.1, I use vitrually 0 parallax and 0 parallel processes, and no my maps aren't huge and I primarily just use Yanfly's plugins and memory has always been an huge issue before I added the Terrax Lighting plugin)


 


Two trials: 


 


1) Mac Book Pro 2014 (Browser Version on Chrome) (First trial I didn't track minute by minute, I did for the second one)


 


Didn't track the beginning, only started tracking after game started lagging a little.


After 45 min of play it was at 6 GB!!! Chrome was struggling! I shut it down after this because it was too laggy and unbearable. 


 


2) Mac Book Pro 2014 (Mac Version, local)



 


Game starts at 100 MB and quickly jumps to 300 MB in the intro.


jumps to 500 to 800 MB Fluctuations in the first 10 min


jumps to 1 GB after 15 min


jumps to 1.27 GB after 45 min (started Battling)


jumps to 1.45 GB after 1 hr (Battling)


jumped to 1.90 GB after 1 hr 6 minutes!! (Battling) 


jumped to 2.06 GB after 2 hrs 9 Minutes!! (Battling! Every battle seems to add 150 MB to memory!)


 


Jumped to 2.36 Gb after 2 hr 30 minutes (The game started to noticably lag after this, so I stopped)




 


/////////////////////////


 


C'mon, is 2.36 GB of memory suppose to be acceptable after 2 hr 30 min of play time? How many computers out there can handle that? Forget mobile! (Best case! it was 6 GB on Chrome in 45 min!!) I mean am I expecting too much from MV? Perhaps 2.36 GB is fine, let me know.


 


I have been very patient and I hope the memory issue has been placed at number 1 priority. No wonder why the android version is simply not possible. That is very bad because I primarily bought MV so I can make a game on Android as well (Andoid, PC, Mac, and Iphone, and sell the game on STEAM). The only games I see that may not have many issues are the super small demonstrations because I can see anyone putting forth an effort to actually make a decent game will run into this memory nightmare. Please give me some hope, some good news please? Is the update around the corner? 


 


My game, Killer Gin: https://killergin.com (The struggle is real)


 
 
Last edited by a moderator:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,370
Reaction score
7,678
First Language
German
Primarily Uses
RMMV
As I said above, you need to wait for the next update to remove the final memory leak in the default engine - and that update is not yet officially available.


And even with that update, only the plugin writers can remove the memory leaks that are in some of the available plugins.
 

KillerGin

Freddie
Veteran
Joined
Dec 18, 2015
Messages
455
Reaction score
357
First Language
English
Primarily Uses
N/A
@Andar


Ok, I just wanted to make sure that this was still considered a priority since trying to make a decent game using MV is near impossible with such a massive memory leak. (I do use a decent amount of events lol guilty!) 


I also think its definitely worth nothing that MV has, because of the memory leak, failed as advertised for mobile devices (Android, iPhone, etc).


Do not think I am being over critical, I love MV! I teach a video game design course at a local college using MV, every student buys a copy of the engine because its part of my course! I do not expect miracles, I just want my game to run decently. I don't care if it takes up 3 GB of RAM just as long is it doesn't lag and sputter to a halt. 


I am really hoping for the next update to shut me up, I have my hopes up since it taking a little bit, perhaps because its finally going to deliver on its promises, YAY! I am excited. Ok, this is the last post I swear, I will wait until the next big release, I just wanted to be heard and to be told these issues are noted and being worked on. Thanks!! 
 

Zalerinian

Jack of all Errors
Veteran
Joined
Dec 17, 2012
Messages
4,696
Reaction score
935
First Language
English
Primarily Uses
N/A
@KillerGin


Also, are you using any plugins? Plugins that don't clean up their own memory aren't a concern of the team developing MV, because the plugins aren't made by them. Believe me, though, it's incredibly easy to create a memory leak, so also check with the creators of any plugins you use, see if they're aware of any issues with their plugins and see if they would be able to get any fixed, because depending on what a plugin does, its potential for memory leaks, ranging from trivial to serious, can be a big risk.


It also, of course, depends on how many things you keep loaded into the game. If you use a lot of pictures on a scene, just remember that those pictures need to be loaded in order to be shown, and thus will use more memory.


But it's true, an update is coming that should fix memory issues, potentially a lot of it if you use a lot of pictures and other such things that consume a decent amount of memory for each one.
 

KillerGin

Freddie
Veteran
Joined
Dec 18, 2015
Messages
455
Reaction score
357
First Language
English
Primarily Uses
N/A
@Zalerinian @Andar


I used this https://gist.github.com/oggy83/08851bce158191450c42535cdb0e9746 and BAM! Beautiful! My game works so smoothly now and I watch the memory clean itself up efficiently. I know its a temp fix and I know it most likely is not an "end all be all" fix but wow this is script amazing! 


The game runs so smoothly now that I am able to play the game on Android (there is still a sound lag issue on Android but I'll take it)! This is what I was looking for!


I am sure the team already has looked into how this beautiful little script works and will incorporate it in the next big update but why didn't you tell me to look at this? Works great! I suggest recommending this script as a temp fix (a great one) until the next big update which, I hope, incorporates this and many other fixes. ;0)


For Zalerinian, thanks, I know, and I am well aware of how all these things affect memory. That is why I try to optimize and choose scripts very carefully and I always make sure everything is up to date. This one simple plugin cleaned up virtually 100% of my memory problems. The game works so well it can be played on Android now! (minus the sound lag issue lol)
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,370
Reaction score
7,678
First Language
German
Primarily Uses
RMMV
but why didn't you tell me to look at this?

There is another topic on the board (sorry, I don't have the link) where one user caught what seems to be the last default memory leak in RMMV, and it was said that that fix would be included into 1.3.2.
But I did - a month ago on this very topic (see quote above), and just a few posts below my post someone else gave you the link to the topic where that fix was first discovered
 

KillerGin

Freddie
Veteran
Joined
Dec 18, 2015
Messages
455
Reaction score
357
First Language
English
Primarily Uses
N/A
@Andar


Very true, I just tend to shy away from "fixes" that aren't official, that was my bad. Thanks so much for your patience and hard work. The script is amazing! 
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Are we allowed to post about non-RPG Maker games?
I should realize that error was produced by a outdated version of MZ so that's why it pop up like that
Ami
i can't wait to drink some ice after struggling with my illness in 9 days. 9 days is really bad for me,i can't focus with my shop and even can't do something with my project
How many hours have you got in mz so far?

A bit of a "sparkle" update to the lower portion of the world map. :LZSexcite:

Forum statistics

Threads
105,883
Messages
1,017,236
Members
137,608
Latest member
Arm9
Top