[SOLVED for Windows 10] Can you help me fix the 90% memory problem?

dipstick5000

  • Posts: 47
I built a fast computer with lots of ram so I wouldn't have to deal with this stuff, but I don't understand how to fix the 90% memory problem. The only fix I can find is here:

http://www.stencyl.com/help/view/ninety-percent-warning/

It says I'm supposed to put this in the Stencyl installation directory:

java^
 -Xms64m^
 -Xmx8192m^
 -XX:CompileCommand=exclude,javax/swing/text/GlyphView,getBreakSpot^
 -XX:-OmitStackTraceInFastThrow^
 -jar sw.jar

How do I do that?

The problem is annoying, but easy enough to deal with, but now I'm trying to import a small GIF and Stencil won't do it. The GIF is about 80 x 160 px, and has about 50 frames. What do I do?


« Last Edit: January 16, 2020, 04:02:44 am by dipstick5000 »
Tonight I'll make a game like Skyrim or Call of Duty. It'll be called Delusional.

dipstick5000

  • Posts: 47
While Stencyl is locked trying to save forever, after it says it can't, my CPU utilization is 1%, and my ram utilization is 4%. How is that a memory problem?
Tonight I'll make a game like Skyrim or Call of Duty. It'll be called Delusional.

dipstick5000

  • Posts: 47
Okay I figured it out, and so far it seems to have solved the issue. I have Windows 10.

1. Go here: https://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html

2. Click the circle to accept the agreement.

3. Click the link for Windows x64 that looks like this: jre-8u241-windows-x64.exe

4. Click the link to create an Oracle account, and leave the sign in web page open while you wait for the email. I had to wait about 5 minutes to get their required email to confirm the account and email address.

5. Go back to the Oracle sign in page and sign in. You'll get a message to save the Java installation file. Do so, and remember where you saved it.

6. Run the Java installation file and install the new version. It'll ask you some stuff, do what's appropriate.

7. Once the new Java is installed, choose one of the following, select it, and copy it to your clipboard:

If you have 4GB of RAM:
java^
 -Xms64m^
 -Xmx2048m^
 -XX:CompileCommand=exclude,javax/swing/text/GlyphView,getBreakSpot^
 -XX:-OmitStackTraceInFastThrow^
 -jar sw.jar

If you have 6GB of RAM:
java^
 -Xms64m^
 -Xmx3072m^
 -XX:CompileCommand=exclude,javax/swing/text/GlyphView,getBreakSpot^
 -XX:-OmitStackTraceInFastThrow^
 -jar sw.jar

If you have 8GB of RAM:
java^
 -Xms64m^
 -Xmx4096m^
 -XX:CompileCommand=exclude,javax/swing/text/GlyphView,getBreakSpot^
 -XX:-OmitStackTraceInFastThrow^
 -jar sw.jar

If you have 12GB of RAM:
java^
 -Xms64m^
 -Xmx6144m^
 -XX:CompileCommand=exclude,javax/swing/text/GlyphView,getBreakSpot^
 -XX:-OmitStackTraceInFastThrow^
 -jar sw.jar

If you have 16GB of RAM or more:
java^
 -Xms64m^
 -Xmx8192m^
 -XX:CompileCommand=exclude,javax/swing/text/GlyphView,getBreakSpot^
 -XX:-OmitStackTraceInFastThrow^
 -jar sw.jar

8. Open up Notepad or something similar.

9. Paste the code you copied during step 7 above.

10. Save the file with a .bat extension, not a .txt extension. If you save it with a wrong extension, you can simply change the extension to .bat. You can name it whatever you want. I named mine Mr Poopie Pants.bat. You will not be able to save it in the required Stencyl folder, so save it somewhere else and remember where you put it. Then you can copy and paste, or drag and drop it into the Stencyl installation folder using Windows Explorer. You'll probably have to provide administrator permission to do so. For me the Stencyl installation folder is here: C:\Program Files (x86)\Stencyl.

11. Now whenever you start Stencyl, do so by clicking that file. You can put a shortcut for it on your desktop by right clicking it, then clicking Create shortcut.

« Last Edit: January 16, 2020, 04:10:26 am by dipstick5000 »
Tonight I'll make a game like Skyrim or Call of Duty. It'll be called Delusional.

Luyren

  • *
  • Posts: 2742
Stencyl 4.0.2 (so the builds above b10300) already comes with the expanded memory limit, so you shouldn't need to do any of that, as far as I know. What build are you using?
My Stencyl resources are available here: https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.
Twitter

dipstick5000

  • Posts: 47
Oh wow I wish I knew that before I spent the time to fix the problem. I'm using 4.0.1 (b10300) - 3515.

Goes to show you should check for updates often, but it seems like half the time I update something, I end up wishing I didn't.

Anyway, thanks.
Tonight I'll make a game like Skyrim or Call of Duty. It'll be called Delusional.

Luyren

  • *
  • Posts: 2742
Oh wow I wish I knew that before I spent the time to fix the problem. I'm using 4.0.1 (b10300) - 3515.
Stencyl 4.0.2 was released December last year. If you are afraid of errors when updating, you can back up your games, and you can have two or more versions of Stencyl installed at once. I have a few of them, I generally just install it on my desktop.
My Stencyl resources are available here: https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.
Twitter

dipstick5000

  • Posts: 47
Ok, good to know. I'll do likewise.
Tonight I'll make a game like Skyrim or Call of Duty. It'll be called Delusional.