Why is -drawRect faster than using CALayers/UIViews for UITableViews?

后端 未结 3 1643
甜味超标
甜味超标 2021-02-06 15:07

I can already hear the wrenching guts of a thousand iOS developers.

No, I am not noob.

Why is -drawRect faster for UITableView performance than having mu

3条回答
  •  盖世英雄少女心
    2021-02-06 15:39

    well, your program could easily end up moving and converting a lot of pixel data if going back and forth from GPU to CPU based renderers.

    as well, many layers can consume a lot of memory.

提交回复
热议问题