If frame rate drop is more dramatic when setting the texture, than say, adjusting the size of the window (without textures), then it may be definitely that the card doesn't support well texturing.

Try adjusting texture parameters such as Magnification and minification filters, using texture.setMagFilter and texture.setMinFilter. In some old graphics cards, bilinear filters are too slow. Try using FASTEST instead. It won't be so "pleasant" to the eye, but at least it could improve the frame rate.

Carlos

Alex Hew wrote:
002301c26488$422a8d50$6580e298@xephyrlazychai">
Hi all,
 
I have a terrain generated using the TriangleStripArray, and a model running on the terrain. The fps is around 52.
 
When I set a texture to it using the code stated below,

TextureLoader load = new TextureLoader("grass.jpg", null);
Texture texture = load.getTexture();
appearance.setTexture(text);
 
my frame rate drops to an all time low of 10fps.
 
Any suggestion?
 
Thanks in advance.
 
- Alex -
 
 

Reply via email to