Is 1024x512 a power of two texture? Also what’s the performance deficit if it isn’t a power of two texture as I want to display about 10 at a time of them in a 3d environment on an iphone 3gs. Its a racing game and these will be the car textures.
It is true for all computers. So by association, phones being small computers now, then yes. Why would anything do different?
It’s about binary. If you know how binary works, you’ll get what I’m saying. If you’ve got a texture that’s got power of two sides, then you only need to put a ‘1’ in that space in the binary code for it.
But if you use a non-power of two texture, you’re going to have to start adding, which is more '1’s.
Like if you had a texture that was 512 * 512, in the binary for each side, you’ll have to write 1000000000. Though if you had a 700 * 700 texture, you need to start adding up powers of two to make that, which means more calculations needed than neccesary. 1010010100.
So yeah,. that’s a bit complex. Just remember- power of two textures will speed everything up, because the CPU or GPU has to do less calculations.