Switch to Book Layout1: Getting Started2: Building Logic
3: Actors
4: Scenes
5: Game Mechanics6: Advanced Topics7: Testing & Tuning8: The Last 10%M1: Mobile - IntroM2: Mobile - BasicsM3: Mobile - ServicesM4: Mobile - PublishingA: Troubleshooting
B: How-To Guides
C: ReferenceD: Resources3.0 Drafts (In Progress)
|
||
|
Level: Beginner
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
6488 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!
4 Comments
Mesket
I have 2.2 but still have this problem very often... usually every 15 to 30 mins 0 2 months, 1 week ago
Vectrex71
@P01 Same problem here :-( It seems like it. When I set it to something higher on my Mac then Stencyl won't open. 0 2 months, 1 week ago
P01
It seems like it. When I set it to something higher on my Mac then Stencyl won't open. 0 7 months, 1 week ago |











