OutOfMemoryError

Started by whis, March 01, 2007, 09:45:57 PM

Previous topic - Next topic

whis

Hello,

I have a problem when i start my app. i have the following error message:



Here, i want to load 8 textures (jpg files).
I d'ont understand the error message.

PS: for each texture
resolution: 2048x2048
weight : 1 mo

Thanks

Melssj5

Java apps has by default 64 MB to run, sometimes a java app needs to store on memory more than that value. In this case you loaded toooooooooooooooooooooooooooo huge textures. The normal resolutions are 256x256 not 2048x2048, try changing the size of your textures. They shouldnt really affect the final result.

Do you really need to have a huge texture or it may be better to small one that is fit to the object face.
Nada por ahora

whis

Thanks for the reply

Yes, I need huge textures for my island:

my island is divide in 8 parts:



each part is a jpg file of 2048x2048 because  i want a good level of details like in the following screen



How can I have this level of details in JPCT without huge textures?

thanks

EgonOlsen

Just start the app with -Xmx256m (or whatever value you prefer) to increase the maximum heap size.

cyberkilla

That is pretty damned good!:)
http://futurerp.net - Text Based MMORPG
http://beta.rpwar.com - 3D Isometric MMORPG