1

I'm using texture packer for packing my textures. There is an option for export as actual size and POT.

Is there any problem in using NPOT textures in cocos2dx(consider iOS and Android platforms)?

Is there any advantage of using NPOT textures? Does it reduce the memory usage when it loaded into device memory.

Is there any advantage of using POT textures? Why most of them suggest to use POT?

Please help me to figure out these questions. I am using cocos2dx 2.x version.

Thanks, Akhil

4

1 回答 1

3

一些(真正“旧”的)设备可能无法加载 NPOT 纹理。在将是原始 iPhone 和 3G iPhone 的 iOS 上,我相信 3GS 是第一个支持 NPOT 的。

NPOT 纹理尺寸通常意味着更少的内存使用。在更新的设备上,它们也不会受到任何性能损失。

iOS 曾经有一个错误,即 NPOT 纹理将内存使用量增加了 33%,但我相信这是在 iOS 4.x 时的情况。

我不知道 Android 上的确切硬件情况(我的意思是,谁知道?)但在 iOS 上,这些天绝对没有理由使用 NPOT 纹理。

于 2014-10-14T12:14:26.677 回答