Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NowtonJson反序列化时间太长 #1

Open
FlameskyDexive opened this issue Aug 23, 2024 · 2 comments
Open

NowtonJson反序列化时间太长 #1

FlameskyDexive opened this issue Aug 23, 2024 · 2 comments

Comments

@FlameskyDexive
Copy link

TestGroupStickNoteComment.json DeserializeObject time:120.39ms,这个是我在i7-12700上用unity编辑器测试的反序列化这个文件,当前仅有几个节点反序列化耗时就已经这么长了,节点稍微多点可能反序列化耗时会超过1s。 行为树序列化部分,odin序列化本来可以用的,性能还不错,可惜没有支持.net8的版本,不知道作者只不知到其他高性能支持行为树在.net8序列化的库。

@FlameskyDexive
Copy link
Author

我去试试看MessagePack-CSharp能否正常序列化/反序列化整棵行为树

@Saroce
Copy link
Owner

Saroce commented Dec 29, 2024

你好,有段时间没看这个项目了。由于这个工程聚焦于行为树的实现,对于数据存储读取方面没有用其他二进制库,选择Json方便测试。只要行为树的数据能够正确地保存跟读取,选择Protobuf、MessagePack等方式都可以,看后期有时间改造下!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants