上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 40 下一页
摘要: 引擎无引用计数机制,所以不会自动清理资源,所以我们可以手动实现引用计数机制,对动态加载的资源进行引用计数。参考链接:https://forum.cocos.org/t/cocos-creator/84793 阅读全文
posted @ 2021-04-26 19:08 porter_代码工作者 阅读(60) 评论(0) 推荐(0)
摘要: 逻辑帧+状态机 说明一点:只要设计规范 一个逻辑帧只处理一个状态,不处理多个状态。 在性能优化的时候 一个逻辑帧 在通知视图层的时候,也可以进行分帧处理。 视图层的分帧处理 是一个常见的优化方案。逻辑层的分帧处理要针对具体的性能点进行优化了https://blog.csdn.net/qq_29523 阅读全文
posted @ 2021-02-05 19:12 porter_代码工作者 阅读(264) 评论(0) 推荐(0)
摘要: if (this._click_callback) this._click_callback.call(null, this); click_call_back: this._onAddRuneClick.bind(this, i) private _onAddRuneClick(pos: numb 阅读全文
posted @ 2021-01-27 15:33 porter_代码工作者 阅读(61) 评论(0) 推荐(0)
摘要: ssh -p 1001 server@localhost 'python -u C:\Users\Administrator\Desktop\web.py 139.93.94.66'ssh -o ServerAliveInterval=60 -fNR 1001:localhost:22 root@1 阅读全文
posted @ 2021-01-20 13:16 porter_代码工作者 阅读(141) 评论(0) 推荐(0)
摘要: 引擎是白鹭,坐标系 和 cocos_creator 不同 this.max_right = GameConfig.curWidth() - this.mainGroup.width;//this.mainGroup.width 内容的宽 this.max_bottom = GameConfig.cu 阅读全文
posted @ 2021-01-20 10:55 porter_代码工作者 阅读(124) 评论(0) 推荐(0)
摘要: exml 的 单个对象的数据绑定 教程 1:先定义 皮肤(skin.CommonCountDownSkin)对应的类 CommonCountDownSkin. 实现皮肤需要绑定的值 如:labelColorexport class CommonCountDownSkin extends eui.Co 阅读全文
posted @ 2021-01-15 11:42 porter_代码工作者 阅读(413) 评论(0) 推荐(1)
摘要: 虚拟列表(ScrollView) ,需要显示大量Item时能大幅降低Drawcall scrollview,list 优化 https://forum.cocos.org/t/topic/79055 阅读全文
posted @ 2021-01-12 15:43 porter_代码工作者 阅读(452) 评论(0) 推荐(0)
摘要: 制作预制体 为content添加layout组件 为scrollview中的content节点添加Layout组件,type属性设置为垂直(VERTICAL)布局,Resize Mode属性设置为CONTAINER 属性准备 properties: { HIGH:80, //每一项的高度 PAGE_ 阅读全文
posted @ 2021-01-12 10:42 porter_代码工作者 阅读(1650) 评论(0) 推荐(0)
摘要: 整个 Web 系统架构在 HTTP 协议 之上, 利用 HTTP 的缓存机制不仅可以极大地减少服务器负载, 更重要的是加速页面的载入,以及减少用户的流量消耗。 快速到达和易于访问是 Web 与生俱来的特性, 其缓存机制也早已被服务器和浏览器厂商广泛地实现, 我们作为 Web 内容的作者何乐而不为呢? 阅读全文
posted @ 2021-01-11 09:53 porter_代码工作者 阅读(647) 评论(0) 推荐(0)
摘要: Git 并不适合管理二进制文件,但有些情况下又不得不添加一些图片之类的二进制文件,但一旦频繁更改的话,历史记录中将记录着每一个完整的二进制文件,导致 repo 越来越大……为了解决该问题,往往需要一些针对二进制文件的处理手段 定期清理 Git 历史 定期清理的话,虽然麻烦,但也最实用,在使用 LFS 阅读全文
posted @ 2021-01-04 10:24 porter_代码工作者 阅读(342) 评论(0) 推荐(0)
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 40 下一页