什么是纹理的最大尺寸(Andengine) [英] What is maximum size of texture (Andengine)
本文介绍了什么是纹理的最大尺寸(Andengine)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
andengine 中应该使用的最大纹理尺寸是多少?我用过
What is maximum size of texture that should be used in andengine. I used
this.diamondTexture = new Texture(2048, 512, TextureOptions.BILINEAR_PREMULTIPLYALPHA);
在设备(HTC G1 T-Mobile)中加载时显示空白屏幕.缩小图像大小并用此替换上面的行后
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 ?
推荐答案
常用方法 - 纹理最大尺寸为 1024x1024.一些高端设备可以处理 2048x2048 纹理,但如果您希望应用程序在几乎所有设备上运行,最好使用 1024x1024 大小.
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.
这篇关于什么是纹理的最大尺寸(Andengine)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文