Code Monkey home page Code Monkey logo

Comments (7)

zyprosoft avatar zyprosoft commented on September 2, 2024

第二个分支当混排的小表情超过7个的时候是会用到的

from zychat.

xilin avatar xilin commented on September 2, 2024

@zyprosoft 可是默认值已经设为YES
还是说默认值应该是NO?

from zychat.

zyprosoft avatar zyprosoft commented on September 2, 2024

可能我改错了,应该是NO的

from zychat.

xilin avatar xilin commented on September 2, 2024

那这个cache设计的目的其实就只是在emoji图片多于7个的时候才启用?我没有做过profile不知道怎么来比较好~

from zychat.

zyprosoft avatar zyprosoft commented on September 2, 2024

这个是为了防止小表情太多,需要循环绘制,所以如果没有点击事件的话,把它渲染成一张图片就好了

from zychat.

xilin avatar xilin commented on September 2, 2024

做了一下profile,纯文本的时候cache与否都不影响帧率。小表情下下降的是比较厉害。
那是不是可以理解成逻辑其实可以设计成

BOOL needRenderCache = phoneNumberArray.count == 0 && linkArray.count == 0;

from zychat.

zyprosoft avatar zyprosoft commented on September 2, 2024

有超过7个小表情的时候,做一些截图渲染会比较好一点,小于7个的时候必要性不大其实

from zychat.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.