Reasonable texture sizes in android

随声附和 提交于 2019-12-05 14:47:25

You can query the MAX_TEXTURE_SIZE to get the maximum texture size, or you can look up your phone on http://glbenchmark.com (you can find the Droid info here). The G1 did not support GLES 2.0, AFAIK.

Loading up several textures should definitly work, especially when they are not more than 2 MB each. But you will of course be restricted by the size of the memory available.

Also, to have optimal performance you should mipmap your textures. Since you are using ETC, this must be done offline.

For a guide to how to use ETC1 with alpha, see here.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!