Open
Conversation
- 在Rust后端实现鼠标移动事件节流,避免频繁事件处理导致性能问题 - 在前端实现双层节流机制,支持可配置的时间间隔 - 添加鼠标位置缓存和延迟处理机制,优化显示器信息获取 feat(settings): 添加性能设置选项 - 新增鼠标移动节流配置项,支持毫秒级频率控制 - 提供节流优化开关,允许用户选择性能与响应速度的平衡
|
[src-tauri/src/core/device.rs]中的38行let throttle_duration = Duration::from_millis(30);的30ms是不是时间有点长了,小猫看起来不太流畅,我将其更改成15ms,大约一秒执行60次,看起来比较流畅,性能需求也增长的不太多 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat(settings): 添加性能设置选项