Color Copied Images

iOS中的视图优化-Color Copied Images


“If an image is in a color format that the GPU can not directly work with,it will be converted in the CPU.”

Session 419 WWDC 2014中详细介绍了Color Copied Images.

苹果的GPU只解析32bit的颜色格式。
如果一张图片,颜色格式不是32bit,CPU会先进行颜色格式转换,再让GPU渲染。
就算异步转换颜色,也会导致性能损耗,比如电量增多,发热强变大等等。

解决办法:让设计师提供32bit颜色格式的图片。

参考文章:图片的颜色深度/颜色格式(32bit,24bit,12bit)

相关文章:

  • 2021-10-06
  • 2021-07-09
  • 2022-01-11
  • 2022-12-23
  • 2022-12-23
  • 2021-11-09
  • 2021-05-11
  • 2021-11-22
猜你喜欢
  • 2022-12-23
  • 2021-06-19
  • 2022-01-04
  • 2021-09-26
  • 2022-12-23
  • 2021-11-26
  • 2021-07-21
相关资源
相似解决方案