I got Sketchup model of city. I exported it to obj (107 MB) and edited in blender for few layers. So i got 3 files (3 layers) of that city, each about 33mb. But when i try to import it in JME i get Out of memory Java heap size though that i have set: -Xmx2g
I suggest you resize your files (including images) to 14.4 MB in total or smaller. Increasing your java heap or anyother memory earlier indicated won’t totally solve the “problem”. 14.4MB is enough for my games and for any other commercial game out there.
Right now when you try to load a 33mb file it will give you an out of memory error. Try reducing it to 14.4 MB or less. I know this because I’ve been performing these kinds of test this week.
LoL thanks @Pixelapp, I do understand, hence why pointed the OP to the post above, I was just poking fun =)… 24gb does include a lot of very hi poly models and super hi res textures, that will be well in excess of 14.4mb .
And for a JME comparison, I loaded over 40 mb of mesh and image data into The Cove, not including the 8 or so in memory variations made at runtime for majority of the textures, I don’t know how much memory it ended up using by the time all the meshes got duplicated and batched together (easily 100’s of MB I would guess)… and I did have horrible memory issues with that until I brought the overall in memory footprint to under 900mb I think it was… again, larger than 14.4mb
@thetoucher I don’t know why you increased your memory, but I don’t have the time right now to go into that untested territory. I’m capping mine at 14.4mb, and hence when I do the same for android it gives me an out of buffer memory error. So my caps are 14.4 MB for PC and 5.0 MB for android mobile. So, I think the test benchmark I ran it’s pretty clear.
It is nice that you don’t see any memory problems anyways. But right now my benchmarks are clear and my game is ending up like a grand theft auto IV game, and I’ve only used 1/4 of my total computing power available on both pc and mobile.