19.10.2008 17:58:59 class hstar.hhexen.HhexenDemo start()
SCHWERWIEGEND: Exception in game loop
org.lwjgl.opengl.OpenGLException: Out of memory (1285)
at org.lwjgl.opengl.Util.checkGLError(Util.java:56)
at org.lwjgl.opengl.Display.swapBuffers(Display.java:555)
at org.lwjgl.opengl.Display.update(Display.java:571)
at com.jme.renderer.lwjgl.LWJGLRenderer.displayBackBuffer(LWJGLRenderer.java:514)
at com.jme.app.BaseGame.start(BaseGame.java:85)
at hstar.hhexen.Main.main(Main.java:33)
19.10.2008 17:58:59 class hstar.hhexen.HhexenDemo start()
SCHWERWIEGEND: Exception in game loop
org.lwjgl.opengl.OpenGLException: Out of memory (1285)
at org.lwjgl.opengl.Util.checkGLError(Util.java:56)
at org.lwjgl.opengl.Display.swapBuffers(Display.java:555)
at org.lwjgl.opengl.Display.update(Display.java:571)
at com.jme.renderer.lwjgl.LWJGLRenderer.displayBackBuffer(LWJGLRenderer.java:514)
at com.jme.app.BaseGame.start(BaseGame.java:85)
at hstar.hhexen.Main.main(Main.java:33)
any idea why?
Try this -Xmx128m (128MB) in the VM parameter for your project. It might be that your VM is only set to 64MB or less and your game is using more then that
I have never got this error message before, but by looking at it, it seems like it is OpenGL running out of memory, not Java. If you are creating and discarding textures, then there may be a leak in there. If i remember correctly, i've read somewhere that the graphics card memory can fragment too. If the textures are updated every frame, it is suggested to upload the biggest textures first, then the smaller ones. Are you perhaps using multiple large and different sized shadowmap textures?