【问题标题】:What is maximum size of texture (Andengine)纹理的最大尺寸是多少(Andengine)
【发布时间】:2011-10-12 12:13:47
【问题描述】:

andengine 中应该使用的纹理的最大尺寸是多少。我用过

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

在设备(HTC G1 T-Mobile)中加载时显示空白屏幕。减小图像尺寸后,并用此替换上述行时

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

它正在运行。有什么问题?

【问题讨论】:

    标签: android andengine


    【解决方案1】:

    常用方法 - 纹理最大尺寸为 1024x1024。一些高端设备可以处理 2048x2048 纹理,但如果您希望应用程序在几乎所有设备上运行,最好使用 1024x1024 尺寸。

    【讨论】:

      【解决方案2】:

      使用较大的纹理时,您的设备可能内存不足。检查您的 logCat 是否有错误。

      【讨论】:

      • logcat 中没有错误。纹理的任何最大尺寸?但有一段时间在模拟器中显示强制关闭/等待
      猜你喜欢
      • 2011-01-31
      • 1970-01-01
      • 2013-09-11
      • 1970-01-01
      • 2018-04-21
      • 2015-01-22
      • 1970-01-01
      • 2011-07-25
      • 1970-01-01
      相关资源
      最近更新 更多