简体   繁体   中英

Android - Optimum Image Size for App Performance and Quality

I want to know what would be the optimum size of the each png image file in the application?

By the time I complete the game application I assume that there will be more than 50 .png images included

in the application. I want each png image to be of high quality and maximize performance of the

application (I do not want any lag spike in my game application..).

Is there any quick approach to find the optimum image size?

Thanks in advance!

Not really possible to know an optimum size, but for sprites for a game, as it sounds like you want, you might try a sprite sheet. This question has a bit more information. Spritesheet programmatically cutting: best practices

If you don't want to go through that, try just compressing your images as much as possible either using jpg compression, or a service like http://www.tinypng.org

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM