however I don't know if in your case memory consumption is something important (I suppose that you are doing some kind of a game because you named terraria :P) but it's dangerous to design a jvm app with that in mind because the JVM does a really well job optimizing memory