v1.0.5
简体中文 (Simplified Chinese)
🚀 性能提升
- 引擎推理强化: 优化了元数据推荐计算逻辑,并在
utils.py中引入dataclass字段缓存,提升了计算性能与 softmax 的数值稳定性。 - 协议解析提速: 引入 Protobuf 类缓存机制,优化了消息解析流程与切片处理逻辑。
🎨 UI/UX 增强
- HUD 置顶优化: 提高 HUD 窗口的置顶级别至
screen-saver,解决了在全屏游戏时可能被覆盖的问题。
⚡ 改进与优化
- 核心打牌推荐逻辑优化:
- 增强断线重连与在线模型回退行为的稳定性。
- 增强针对三麻模式不相关特征/元数据的屏蔽处理逻辑。
- 通过本地配置的
temperature接管引擎元数据的默认参数计算,提供更准确的立直前瞻预测与行为推荐。 - 移除对赤宝牌校验逻辑中不必要的验证复杂度,增强输入归一化。
🛠️ 维护与重构
- 移除冗余代码: 移除老旧的
ReplayEngine,统一将回放分析与实战打牌模式的调用口归拢至更为清晰的序列化逻辑中。 - 连接状态管理: 大幅重构前端
SettingsProvider,消除了使用useEffect触发保存的反模式。采用最新的 React 19 事件驱动模型,减少双重渲染,使得 UI 响应更加丝滑。 - Electron 架构稳固: 全面审查并加强了 Electron 端的异步化 I/O 及 TypeScript 下强类型推导。
- DataServer 协议重构: 更新
dataserver服务端点、桥接适配代码以匹配最新的协议规范,加强容错处理。
English
🚀 Performance Improvements
- Engine Inference Boost: Optimized metadata recommendation logic in
utils.py, implemented dataclass field caching, and enhanced softmax numerical stability. - Protocol Parsing Speed: Optimized message parsing by introducing Protobuf class caching and streamlined tile handling/wrapper logic.
🎨 UI/UX Enhancements
- HUD Enhancement: Reinforced the HUD window's always-on-top level to
screen-saverto effectively prevent overlap issues during fullscreen gameplay.
⚡ Improvements & Refinements
- Core Game Logic:
- Improved engine fallback processing, circuit breaker behaviors, and metadata reporting.
- Enhanced logic to suppress irrelevant metadata cleanly when playing 3-player mahjong.
- Integrated local settings to parse
temperaturedirectly intometa_to_recommendfor pinpoint accurate riichi lookahead estimates. - Clarified red tile extraction logic and boosted input normalization pipelines.
🛠️ Maintenance & Refactoring
- De-cluttering: Removed legacy
ReplayEnginelogic, merging sync and replay mode capabilities effectively usingcan_actparameters for a tightened event handling loop. - Reactivity & State Management: Refactored
SettingsProviderunder the hood to eliminate theuseEffecttrigger anti-pattern, adopting a proper event-driven approach for a smoother user experience devoid of cascading renders. - Electron Stability: Refactored Electron main process synchronization (e.g., config reading) into async functions, paired with robust TypeScript strong typing.
- Backend Refactoring: Comprehensive refactoring of the
dataserverAPIs, adapters, and bridge architectures to align with updated payload protocols.
Full Changelog: v1.0.4...v1.0.5