Repository navigation
Desk-Petrick v0.2.0
📌 v0.2.0 — 全新宠物形象 · AI 自动抠图 · 生活助手 · 性能大优化
✨ 亮点
全新默认宠物:内置 3 只全新角色(🐱 猫 / 🦊 狐狸 / 🐰 兔子),透明立绘直接作为桌宠显示;旧皮肤 ID 完全兼容,升级不丢配置
✂️ AI 自动抠图:内置 U-2-Netp 主体分割模型(本地推理),导入带背景的人物 / 动物照片自动识别并抠出主体,全程离线,支持调节抠图强度与自动裁剪透明边缘
💬 生活助手:主动搭话 · 天气播报 · 整点报时,三个独立开关
⚡ 更丝滑、更省电:睡眠时渲染几乎零 GPU 占用、60fps 帧率上限、GPU 光栅化 + 零拷贝合成
🆕 新功能
功能 说明
🐱🦊🐰 全新默认宠物 猫 / 狐狸 / 兔子全新角色立绘,透明背景直接显示
✂️ AI 自动抠图 U-2-Netp 主体分割 + 强度调节,自动裁剪透明边缘,本地离线推理
💬 主动搭话 空闲 10 分钟宠物主动问好(可开关)
☁️ 天气播报 免费 API(IP 定位 + Open-Meteo),点击宠物随机播报日期 / 城市 / 温度 / 天气(可开关)
⏰ 整点报时 每小时整点跳跃 + 气泡报时 + 提示音(可开关)
⚡ 性能优化
睡眠时暂停渲染循环,改为 2fps 慢速动画 → 睡着时 GPU 占用趋近于 0
渲染帧率上限 60fps(不再跟随 144Hz 显示器空转)
启用 enable-gpu-rasterization + enable-zero-copy 合成参数
命中检测改为每帧一次批量读回 + 内存查询,消除鼠标移动时的 GPU 回读微卡顿
📦 其他
打包内置抠图模型与原生依赖(onnxruntime / sharp);产物:Windows NSIS / macOS DMG+ZIP / Linux AppImage+deb
新增 THIRD_PARTY_NOTICES.md(U-2-Netp、ONNX Runtime、Sharp 许可说明)
README 与截图全面更新
抠图模型(约 4.5MB)随安装包内置,完全离线可用;对纯色背景和人物 / 动物照片效果最佳,复杂背景建议手动处理后导入
旧版 config.json 完全兼容,皮肤 ID 保留但显示新形象
📌 v0.2.0 — Brand-new pets · AI background removal · Life Assistant · Performance overhaul
✨ Highlights
Brand-new default pets: 3 new characters (🐱 Cat / 🦊 Fox / 🐰 Rabbit) rendered as transparent art; legacy skin IDs stay fully compatible — upgrading never loses your config
✂️ AI background removal: built-in U-2-Netp salient-object model (local inference) — import a photo of a person or animal with a background and it automatically extracts the subject, fully offline, with adjustable strength and automatic transparent-edge trimming
💬 Life Assistant: proactive chat · weather · hourly chime, three independent toggles
⚡ Smoother & lighter: near-zero GPU usage while sleeping, 60 FPS cap, GPU rasterization + zero-copy compositing
🆕 New Features
Feature Description
🐱🦊🐰 New default pets Brand-new Cat / Fox / Rabbit character art, shown directly as transparent pets
✂️ AI background removal U-2-Netp salient-object segmentation + strength slider, auto-trims transparent edges, offline local inference
💬 Proactive chat After 10 idle minutes the pet says hi on its own (toggleable)
☁️ Weather Free APIs (IP geolocation + Open-Meteo); clicking the pet sometimes reports date / city / temperature / conditions (toggleable)
⏰ Hourly chime The pet jumps, announces the hour in a bubble with a chime (toggleable)
⚡ Performance
Render loop pauses while sleeping, switching to a 2 FPS slow animation → GPU usage drops to ~0 when the pet is asleep
60 FPS render cap (no more vsync-rate waste on 144 Hz displays)
enable-gpu-rasterization + enable-zero-copy compositor switches
Hit-testing now uses one batched readback per frame into memory — removes the per-mousemove GPU stall
📦 Other
Installers bundle the cutout model and native deps (onnxruntime / sharp); builds: Windows NSIS / macOS DMG+ZIP / Linux AppImage+deb
New THIRD_PARTY_NOTICES.md (U-2-Netp, ONNX Runtime, Sharp license notices)
README and screenshots fully updated
The cutout model (~4.5 MB) ships inside the installer — fully offline. Works best on solid backgrounds and person/animal photos; complex backgrounds may need manual editing before importing
Existing config.json is fully compatible — skin IDs are kept but display the new art