Comments (7)
第二个分支当混排的小表情超过7个的时候是会用到的
from zychat.
@zyprosoft 可是默认值已经设为YES
还是说默认值应该是NO?
from zychat.
可能我改错了,应该是NO的
from zychat.
那这个cache设计的目的其实就只是在emoji图片多于7个的时候才启用?我没有做过profile不知道怎么来比较好~
from zychat.
这个是为了防止小表情太多,需要循环绘制,所以如果没有点击事件的话,把它渲染成一张图片就好了
from zychat.
做了一下profile,纯文本的时候cache与否都不影响帧率。小表情下下降的是比较厉害。
那是不是可以理解成逻辑其实可以设计成
BOOL needRenderCache = phoneNumberArray.count == 0 && linkArray.count == 0;
from zychat.
有超过7个小表情的时候,做一些截图渲染会比较好一点,小于7个的时候必要性不大其实
from zychat.
Related Issues (14)
- 聊天界面不能播放录音 HOT 2
- 滑动到视屏的时候有明显卡顿感,能优化吗? HOT 1
- 广场-群聊发消息。无法接收及创建群不及时刷新
- 聊天界面不能查看三维视图 HOT 4
- 可不可以把pod目录去掉,下载好慢还失败 HOT 1
- 看到你说你欢迎改进,那我就提点意见 HOT 5
- 聊天内容的图片显示,可不可以像微信那样 HOT 1
- 怎么不更新了呢
- 下载下来运行报错 HOT 2
- bug HOT 4
- 关于`GJGCChatDetailViewController`中的`refreshFootView` HOT 1
- 聊天页的空cell问题 HOT 1
- 解压时 文件已损坏?咋回事呢 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zychat.