i´m getting java.lang.OutOfMemoryError: Direct buffer memory when i use certain models in my scene.
At the main menue is a flycam and the scene is loaded. However this error just occures when i start a game at the Lobby
wich creates a PlayerAppState.
The models doesn´t have many polygons(for example one is a single hut) and the texture is in a 2500x1875 res.
It´s definately no problem of my memory since over 4gb are always free.
I recently tried a 1600x1200 texture and it worked perfectly fine, any suggestions why this happens?
It shouldn´t be a problem of limits if i´m right.
I’m not familiar with how the sdk does this. But I would guess that in the wiki on this page there is something about, as this is a quite common problem.
If you increase the direct memory in the SDK note that if you set a value that is too large it will just be ignored and you are right back at the (very low) default. So for example, the SDK default on 32 bit OS’s is completely ignored because by default it is set to 2 gig and in Java on a 32 bit OS the heap or direct mem can only be set to 1 gig.