跳到正文
linqingan.com
LearnBuildSolveVerifyAPITools
ENOpen Doctor
知识库/文章标签/CPU

TAG

CPU

当前共有 2 篇文章使用这个长期主题标签。

发布于 2026年8月5日/18 分钟/Screeps 进阶开发

Screeps CPU Bucket 一直下降怎么办:任务分级、降载与自动恢复

当 Game.cpu.bucket 持续下降时,用带迟滞的 NORMAL、CONSERVE、EMERGENCY 与 RECOVERY 状态机保护 Spawn、采集、Controller 和防御,逐级暂停高成本任务,并在恢复后分阶段重新启用。

ScreepsCPU运行诊断自动化JavaScript
发布于 2026年7月18日/更新于 2026年7月22日/9 分钟/Screeps 基础工程

Game.cpu.getUsed() 和 bucket 怎么监控 CPU

区分 Game.cpu.limit、tickLimit 与 bucket,用前后差值测量代码段CPU,并通过固定样本窗口观察平均值、峰值和可选任务执行条件。

Screeps基础工程CPU运行诊断Game API
linqingan.com

Making Screeps easier to learn, build and master.

AboutChangelogGitHubContact

Build. Learn. Solve. Repeat.