我应该为 libgdx 中的每个图像按钮制作不同的纹理包吗?
Should i make different texture pack for each image button in libgdx?
我在我的游戏中使用了 12 个图像按钮,我应该为所有按钮制作一个纹理包还是为每个图像按钮制作不同的 .pack 文件和 .png?
您应该使用尽可能少的图像以减少需要加载到内存中的图像数量。
"The main reason to use a texture packer is that loading individual
images is expensive. Loading 200 small images would take a lot of
processing time whereas loading 1 image and using portions of that
image would use a considerably smaller amount."
我在我的游戏中使用了 12 个图像按钮,我应该为所有按钮制作一个纹理包还是为每个图像按钮制作不同的 .pack 文件和 .png?
您应该使用尽可能少的图像以减少需要加载到内存中的图像数量。
"The main reason to use a texture packer is that loading individual images is expensive. Loading 200 small images would take a lot of processing time whereas loading 1 image and using portions of that image would use a considerably smaller amount."