Skip to content

feat: 新增「猫咪设置 > 模型设置 > 最大帧率」配置项#934

Merged
ayangweb merged 2 commits intomasterfrom
add-max-fps
Apr 18, 2026
Merged

feat: 新增「猫咪设置 > 模型设置 > 最大帧率」配置项#934
ayangweb merged 2 commits intomasterfrom
add-max-fps

Conversation

@ayangweb
Copy link
Copy Markdown
Owner

resolved #933

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a user-facing “Max Frame Rate” setting under Preferences → Cat Settings → Model Settings to limit Live2D rendering FPS (issue #933), wiring the persisted store value to Pixi’s ticker.

Changes:

  • Add maxFPS to the cat model store with a default value.
  • Add a preference UI control to edit maxFPS.
  • Apply maxFPS at runtime by watching the store and updating Ticker.shared.maxFPS.
  • Add i18n strings for the new setting across all supported locales.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/utils/live2d.ts Adds setMaxFPS() to apply the FPS limit to Pixi’s shared ticker.
src/stores/cat.ts Persists new model.maxFPS setting with a default.
src/pages/preference/components/cat/index.vue Adds an InputNumber control for configuring max FPS in Preferences.
src/pages/main/index.vue Watches model.maxFPS and applies it immediately via live2d.setMaxFPS.
src/locales/zh-TW.json Adds label/hint translations for maxFPS.
src/locales/zh-CN.json Adds label/hint translations for maxFPS.
src/locales/vi-VN.json Adds label/hint translations for maxFPS.
src/locales/pt-BR.json Adds label/hint translations for maxFPS.
src/locales/en-US.json Adds label/hint translations for maxFPS.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/pages/main/index.vue
Comment thread src/utils/live2d.ts
Comment thread src/pages/preference/components/cat/index.vue Outdated
@ayangweb ayangweb merged commit 29b20f7 into master Apr 18, 2026
@ayangweb ayangweb deleted the add-max-fps branch April 18, 2026 09:36
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

Successfully merging this pull request may close these issues.

[feat] 想要锁帧功能 Need Framerates Limit Option

2 participants