1: Getting Started
2: Building Logic
5: Game Mechanics
6: Advanced Topics
7: Testing & Tuning
8: The Last 10%
M1: Mobile - Intro
M2: Mobile - Basics
M3: Mobile - Services
M4: Mobile - Publishing
B: How-To Guides
3.0 Drafts (In Progress)
The 90% Memory Warning
Note: As of the latest nightly builds in 2.0 or later, this should be happening a lot less, if at all.
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)
For Windows users, this alternate EXE should do the trick. We'll be shipping it by default starting with Stencyl 2.0.
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. (In older versions, it may be 512)
How to Safely Suppress This Warning (Mac)
1) Right-click the Stencyl.app bundle and "Show Package Contents"
2) Edit Contents/Info.plist.
3) Expand the Java node. You should see something like this.
Change the thing that looks like "-Xmx1536m" to a higher number - the 1536 represents MB. (In older versions, it may be 512 or 1024)
Last Updated: 2012-03-30 by Jon
9078 have read this article
Disclaimer: The Stencyl Team does not actively monitor comments on articles. If you're seeking help for your game, please ask a question on the forums. Thanks!