The 90% Memory Warning
by captaincomic (Updated on 2015-03-13)
Why does this happen?
Java operates by allocating a chunk of memory for the application to use before the app launches - it can't be set at runtime.
There is an upper limit to this memory. If you go too high, the application stops operating properly.
So why not just set the limit very high? It causes weaker machines with less memory to fail to open the app at all.
Although we are working to reduce memory usage and plug leaks, there are large games for which having the higher memory usage will be useful.
How to Safely Suppress This Warning (Windows)
First, if you don't have a 64-bit Java installed already, get the latest 64-bit version from Oracle.
Then make a batch script with the following contents, changing the 1024 to something bigger until it works for you. To make the script create a text file, save it with a .bat extension, and stick it in the Stencyl directory. If you don't have permissions to create it within the Stencyl directory, you have to create it in your user directory and move it to the Stencyl directory afterwards.
java -Xms64m -Xmx1024m -jar sw.jar
Double click the script to start Stencyl from now on.
How to Safely Suppress This Warning (Linux)
1) Edit the Stencyl shell script.
2) Change the thing that looks like "-Xmx1024m" to a higher number - the 1024 represents MB.
How to Safely Suppress This Warning (Mac)
1) Right-click the Stencyl.app bundle and "Show Package Contents".
2) Edit Contents/MacOS/Stencyl.
3) Find the line that starts with -Xmx1536m and change the number to a higher number - the 1536 represents MB.