The 90% Memory Warning
by captaincomic (Updated on 2015-02-04)
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)
Make a batch script (create a text file, save it with a .bat extension, stick it in the Stencyl directory) with the following contents, changing the 1024 to something bigger until it works for you.
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.