Files
netease-modsdk-wiki/docs/mcguide/27-网络游戏/课程5:实用知识/第10节:性能开关.md
2025-03-17 13:24:39 +08:00

26 lines
1.1 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
front:
hard: 进阶
time: 20分钟
---
# 性能开关
性能开关分统一和单独两种类型。
整体关闭/打开预定义的游戏原生逻辑所有的逻辑默认状态均为【开】也就是is_disable=False 只有当调用此接口关闭之后,才会进入到【关】的状态,关闭这类原生逻辑能够提高服务器的性能,承载更高的同时在线人数,同时也会使一些生存服的玩法失效。另外,强烈建议在服务器初始化时调用此接口,同时不要在服务器运行中途修改
关闭/打开某个游戏原生逻辑所有的逻辑默认状态均为【开】也就是is_disable=False
只有当调用此接口关闭之后,才会进入到【关】的状态,关闭这类原生逻辑能够提高服务器的性能,
承载更高的同时在线人数,同时也会使一些生存服的玩法失效。另外,强烈建议在服务器初始化时调用此接口,同时不要在服务器运行中途修改
性能开关<a href="../../../mcdocs/2-Apollo/4-SDK/6-大厅与游戏服API.html#性能开关" rel="noopenner"> 介绍 </a>