Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is maximum size of texture (Andengine)

What is maximum size of texture that should be used in andengine. I used

this.diamondTexture = new Texture(2048, 512, TextureOptions.BILINEAR_PREMULTIPLYALPHA);

When loading in device(HTC G1 T-Mobile) it shows blank screen. After reducing the image size and when replacing the above line with this

this.diamondTexture = new Texture(1024, 512, TextureOptions.BILINEAR_PREMULTIPLYALPHA);

Its running . Whats the problem ?

like image 715
JohnRaja Avatar asked Jul 25 '11 11:07

JohnRaja


1 Answers

Common approach - texture max size is 1024x1024. Some hi-end devices can handle 2048x2048 textures, but it`s better to use 1024x1024 size if you want your application to run on almost all devices.

like image 85
cr_az Avatar answered Oct 03 '22 03:10

cr_az