I was importing a lot of textures into my paper2D project, and I noticed that I would often get the error: _.png is not a power of two. Non power of two textures are never streamed and have no mimaps. Proceed?"
How much does this impact performance? Could this be why I find my paper2D sprites to have choppy rendering? Are other paper2D developers using power of 2 textures?
And if I wanted to make it a power of 2 png, how would I go about doing this? I tried following the example here, but it would end up stretching the pngs which made them look weird. Do I have to add white space to every png to make them powers of 2, then import into unreal, and then crop the white space out again? Is there a way I can do this to all the pngs at the same time so I don’t have to go one by one?
I read somewhere that doesn’t apply for sprite sheets and can be ignored.
var inputFolder = Folder.selectDialog("Select a folder to process");
var fileList = inputFolder.getFiles("*.PNG");
for(var i=0; i<fileList.length; i++)
var doc = open(fileList[i]);
var new_width = doc.width;
var new_height = doc.height;
new_width |= new_width >> 1;
new_width |= new_width >> 2;
new_width |= new_width >> 4;
new_width |= new_width >> 8;
new_width |= new_width >> 16;
new_height |= new_height >> 1;
new_height |= new_height >> 2;
new_height |= new_height >> 4;
new_height |= new_height >> 8;
new_height |= new_height >> 16;