Comments (4)
理一下事件,GameEvent是全局事件,默认是给系统级的使用,只会在初次AddEventListener的时候创建EventDelegateData。移除监听并不会释放EventDelegateData,已经创建过的则不会再创建所以设计师可以不需要用池,属于空间换时间。如果是局部单位大量需要AddEventListener使用ActorEventDispatcher。
from tengine.
感谢解答疑惑
from tengine.
此处 GC 来源是 Action 的 delegate 的 Combine.这个无法避免,不存在一帧 同时 10000 次的同时监听和发送事件的真实情况,事实上也才 system 的 Action delegate.Combine 10000 次也才2.5mb。完全不存在 gc 严重的说法哦。测试用例非正常,gc 理解也不对。
from tengine.
每次监听都会创建一个EventDelegateData对象,为啥没用池处理
from tengine.
Related Issues (20)
- 2.0读取加载配置文件没搞懂 能发布个交流群吗
- 导入报错 HOT 2
- 请暂停更新出个单机暗黑类的演示吧... HOT 2
- 运行UIDemo时候报错 HOT 1
- 老哥~现在是3.0了,之前文档是不是只是1.0的,已经完全不一样了? HOT 3
- 3.0的网络部分,求大佬能整理一下! HOT 5
- 大佬3.0还是MVE吗,好像跟2.0的UI系统不一样了 HOT 1
- GMBehaviourSystem生命周期问题 HOT 1
- 大佬,网络模块WebSocket大概什么时候支持吖? HOT 1
- 源码里好像并没有Fantasy的代码呀?需要自己集成进来吗? HOT 1
- 大佬,基于YooAsset和基于Addressables不是冲突的么 HOT 3
- macos中文乱码 HOT 1
- AudioAgent类中_audioModuleImp的赋值问题 HOT 1
- LoopListView和LoopGridView重复加载问题 HOT 2
- 安卓真机的首包下载完毕后会卡在main场景不执行热更层代码,需要后台退出一次重新进入才正常 HOT 2
- 4.0.11版本是不是还不太稳定,最近在尝试将开发的游戏发布到微信小游戏,一直不太顺利,需要各种debug HOT 1
- debugger适配问题 HOT 2
- “文档快速入门”链接挂了 HOT 2
- 这样写的目的是啥,用倒序删除是否也可以实现? HOT 4
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 tengine.