This is related to my last problem, where my game would crash after reloading my scene.
Basically, scene editor will not open the scene anymore, I don’t know how to fix it, but I do know that my game can still load it the first time.
I’m thinking, maybe there’s a way to edit my scene to delete my terrain from an external editor, or maybe open scene explorer without opening scene editor. i really don’t want to start that scene from scratch, and would rather just remove the sizable terrain.
You’r application did not load my world, however, as I was looking through the documentation of the SDK I found out that you can increase the direct memory size (I was increasing heap memory with my application) and now it opens fine. I’m sure that your editor would work just fine if I increased the Direct Memory.
# ${HOME} will be replaced by user home directory according to platform
default_userdir="${HOME}/.${APPNAME}/3.1.0-beta2-b001-SNAPSHOT"
default_mac_userdir="${HOME}/Library/Application Support/${APPNAME}/3.1.0-beta2-b001-SNAPSHOT"
# options used by the launcher by default, can be overridden by explicit
# command line switches
default_options="--branding jmonkeyplatform -J-Xms24m -J-Dsun.java2d.dpiaware=true -J-Dapple.laf.useScreenMenuBar=true -J-Dawt.useSystemAAFontSettings=lcd -J-Dswing.aatext=true -J-Xmx1024m -J-XX:MaxDirectMemorySize=4098m -J-Dsun.zip.disableMemoryMapping=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true"
# for development purposes you may wish to append: -J-Dnetbeans.logger.console=true -J-ea
# default location of JDK/JRE, can be overridden by using --jdkhome <dir> switch
jdkhome="jdk"
# clusters' paths separated by path.separator (semicolon on Windows, colon on Unices)
#extra_clusters=
This is my config. As the direct memory was set (by default) 4 times the heap memory I increased heap memory and then increased direct memory accordingly.
``-J-Xmx1024m -J-XX:MaxDirectMemorySize=4098m ```
I’m sure I’m overkilling this but oh well not like I’m setting this for the games, only the IDE. And as I said in the other thread I’m just going to stay away from large terrains.