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

1 Answers1

3

Some (really "old") devices may not be able to load NPOT textures. On iOS that would be the original and 3G iPhones, I believe the 3GS was the first to support NPOT.

NPOT texture dimensions typically means less memory usage. On more recent devices they also don't suffer any performance penalties.

iOS once had a bug where NPOT textures increased memory usage by 33%, but that was way back when with iOS 4.x I believe.

I don't know the exact hardware situation on Android (I mean, who does?) but on iOS there's absolutely no reason not to use NPOT textures these days.

CodeSmile
  • 64,284
  • 20
  • 132
  • 217