Author Topic: OutOfMemoryError  (Read 2438 times)

Offline whis

  • byte
  • *
  • Posts: 7
    • View Profile
OutOfMemoryError
« on: March 01, 2007, 09:45:57 pm »
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

Offline Melssj5

  • double
  • *****
  • Posts: 715
    • View Profile
Re: OutOfMemoryError
« Reply #1 on: March 01, 2007, 10:06:32 pm »
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

Offline whis

  • byte
  • *
  • Posts: 7
    • View Profile
Re: OutOfMemoryError
« Reply #2 on: March 01, 2007, 10:31:45 pm »
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

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11776
    • View Profile
    • http://www.jpct.net
Re: OutOfMemoryError
« Reply #3 on: March 01, 2007, 11:41:19 pm »
Just start the app with -Xmx256m (or whatever value you prefer) to increase the maximum heap size.

Offline cyberkilla

  • float
  • ****
  • Posts: 413
    • View Profile
    • http://futurerp.net
Re: OutOfMemoryError
« Reply #4 on: March 02, 2007, 01:41:04 am »
That is pretty damned good!:)
http://futurerp.net - Text Based MMORPG
http://beta.rpwar.com - 3D Isometric MMORPG