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

[docs] 插件的手动性能优化方法 (Manual performance optimization methods for plug-ins) #48

Open
LincZero opened this issue Aug 27, 2024 · 2 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@LincZero
Copy link
Collaborator

No description provided.

@LincZero
Copy link
Collaborator Author

LincZero commented Aug 27, 2024

优化方式一:关闭实时模式中的渲染

方法:将插件文件夹 data.json 中的 "decoration_live": "block",中的 block 修改为 none,即在实时模式中禁用插件渲染

这里会优化得比较多

优化方式二:关闭默认别名预设

方法:将插件文件夹 data.json 中的 "alias_use_default": true,中的 true 修改为 false,即禁用别名模块中的默认别名

修改后关闭并重新打开插件生效

(可选) 修改前你可以使用 [info_alias] 处理器查看当前运行中的别名项,修改后也可以使用相同方法看默认的别名项有无被去除

(可选) 初始别名可能设置得有点多了,等待进行性能优化。其实很多用不到,如果有个别需要用的,可以通过用户别名的方式单独添加回去

@LincZero
Copy link
Collaborator Author

LincZero commented Aug 27, 2024

关于优化方式二 “关闭默认别名预设” 的性能提升比例

emmm 右边是关闭掉默认别名预设的耗时……感觉这个新模块也没多吃多少啊……有空再对比下前几个版本的性能……

图片

(selector为 "headtail" 那种可以忽略,是嵌套AB块来的,一个顶其他的两三个正常)

@LincZero LincZero added the enhancement New feature or request label Aug 27, 2024
@LincZero LincZero changed the title v3.1.0 性能下降导致卡顿,需要进行优化 v3.1.0 性能略有下降,尝试优化 Aug 27, 2024
@LincZero LincZero added the documentation Improvements or additions to documentation label Aug 27, 2024
@LincZero LincZero changed the title v3.1.0 性能略有下降,尝试优化 插件的手动性能优化方法 (Manual performance optimization methods for plug-ins) Aug 27, 2024
@LincZero LincZero changed the title 插件的手动性能优化方法 (Manual performance optimization methods for plug-ins) [Docs] 插件的手动性能优化方法 (Manual performance optimization methods for plug-ins) Aug 27, 2024
@LincZero LincZero changed the title [Docs] 插件的手动性能优化方法 (Manual performance optimization methods for plug-ins) [docs] 插件的手动性能优化方法 (Manual performance optimization methods for plug-ins) Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant