🤑 Indie game store🙌 Free games😂 Fun games😨 Horror games
👷 Game development🎨 Assets📚 Comics
🎉 Sales🎁 Bundles

[SOLVED] Stuttering after death / Out Of Memory Error

A topic by Metroidvanias.com created 108 days ago Views: 147 Replies: 6
Viewing posts 1 to 7
(Edited 2 times)

(Mod edit: See https://itch.io/t/130268/java-outofmemory-crash for more information on the OOME, specifically).

After death -> continue, a continuous stutter is introduced into the game.  Quitting to the main menu and loading does not fix this state. Upon next death or quit to menu and reload, a crash occurs.

Demonstration. Death occurs at 0:30:

(Edited 1 time)

^ Same for me! I think it's a memory leak - garbage collection on shorter intervals. I'm guessing some resources aren't being disposed of properly after death.

Didn't fix it. Still have the stutter, still have the crash after second death with the same err.log output.

I slapped it onto my work laptop which has an AMD GPU + i7. The post-death stutter doesn't happen! However, the crash after second death still does, with a slightly different error log:

Exception in thread "LWJGL Application" java.lang.NullPointerException
at com.solarlune.gearend.objects.interactables.Treadmill.main(Treadmill.java:49)
at com.nilunder.bdx.Scene.runObjectLogic(Scene.java:865)
at com.nilunder.bdx.Scene.update(Scene.java:923)
at com.nilunder.bdx.Bdx.main(Bdx.java:338)
at com.solarlune.gearend.BdxApp.render(BdxApp.java:44)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:223)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:124)

Same thing happens when you exit to the main menu and then continue again, atleast for me. Good thing the game starts up fast :)

Hello! I just updated the game (v1.02) with some memory fixes. I still haven't seen what you all are experiencing as far as Out Of Memory Errors or stuttering after death, but that's not stopping me from trying to improve stuff. The game should now by default be fixed to 1 GB of memory (seems like it should be enough), and should also garbage-collect more efficiently (as some data was being stored in memory that didn't need to be there). 

If it's not at all better, lemme know! And if you could let me know the general area you're in if you notice further issues, like in the video above, that'd also be helpful. Thank you!

Latest version doesn't stutter after death, nor do I get out of memory errors.

Great to hear!