Commit Graph

79 Commits

Author SHA1 Message Date
辉鸭蛋
1b748f4dc7 恢复原先窗口大小变化的判断,WinEventCallback有概率不触发 2026-01-18 23:50:50 +08:00
辉鸭蛋
5f4185b7f0 添加动态修改log窗口位置的功能 2026-01-17 16:07:34 +08:00
辉鸭蛋
bcfc3f7c7e 独立任务正在运行期间不允许画中画功能展示 2025-12-26 01:28:39 +08:00
std::bad_alloc
f618f87326 为自动剧情添加画中画功能 (#2484)
Co-authored-by: 辉鸭蛋 <huiyadanli@gmail.com>
2025-12-14 13:31:19 +08:00
辉鸭蛋
c7c25b104f 使用 SetWinEventHook 优化日志遮罩针对原神窗口的跟随延迟 #2540 2025-12-14 12:15:12 +08:00
Jamis
3b43a7318f fix mask window lost issue (#2397) 2025-10-27 10:35:54 +08:00
辉鸭蛋
db0edabad2 启动时重置 GameLoadingTrigger 的状态 2025-09-13 06:59:35 +08:00
Shatyuka
0bea2d095a 截图优化 (#1480)
* BitBlt 优化

* BitBlt恢复Top-down

* 渲染时翻转图像

* CaptureSession引用计数

* 恢复成无拷贝Mat

* 合法性检查

* 优化截图预览窗口

* 保存截图文件必要时需要克隆一份Mat

* BitBlt内存池

* 返回拷贝就不用对Session做引用计数了

* 移除CaptureImageRes

* 优化DirectX

* 更好地处理padding

* BitBlt去掉padding

1920*1080的游戏窗口是4字节对齐的,因此不会有性能影响。这里主要用于测试。

* 修复修改窗口大小

* 合并CreateStagingTexture

* 修复设备丢失崩溃

* WGC截图支持HDR

* fix typo

* CodeQA

* 去掉1px窗口边框

* DirectX截图去掉A通道

* HDR转换使用GPU加速

---------

Co-authored-by: 辉鸭蛋 <huiyadanli@gmail.com>
2025-05-11 01:17:18 +08:00
辉鸭蛋
cd4d0a4d58 删除无用debug日志 2025-04-26 23:26:42 +08:00
Shatyuka
1bd070bf5c 遮罩窗口自动缩放 (#1478)
* 遮罩窗口自动缩放

* 怎么丢了一行
2025-04-26 17:35:21 +08:00
辉鸭蛋
1df15bb83c 提供老版本的稳定 BitBlt 功能 2025-04-11 00:11:42 +08:00
辉鸭蛋
e77c143f6b Merge branch 'pr/1320'
# Conflicts:
#	BetterGenshinImpact/GameTask/GameTaskManager.cs
2025-03-23 23:35:22 +08:00
辉鸭蛋
9bfdfd041e 一些优化
1. 一条龙未选择要刷的秘境时,直接提示
2. 修复独立任务运行时,实时任务仍在运行的问题
2025-03-23 22:04:43 +08:00
Takaranoao
2aefabe09c 添加实时任务,不会清理之前的任务 2025-03-16 20:00:25 +08:00
辉鸭蛋
e1bd3393b8 WGC 去掉HDR处理,增加处理帧率限制 2025-03-15 19:54:53 +08:00
辉鸭蛋
807288ab90 重构底层截图器,大幅提升截图器耗时 (#1302)
* to mat init

* BitBlt 加锁

* 使用读写锁重构 Windows.Graphics.Capture,删除BGI自己命名的缓存设置

* dwm加锁并返回mat

* 队伍中没有对应元素角色修复日志问题

* 清除所有 DispatcherTimerOperationEnum 内容

* 修复单测的编译错误

* HDR Support

* 清理无用的截图器模式
2025-03-15 13:18:19 +08:00
可耐的小伙纸
9f6299df88 add:使用Starward记录游戏时间 (#1164)
* add:使用Starward记录游戏时间

* feat:修复了多余的参数(手滑

* add:添加了Starward协议检测
feat:使用正则解析ini
feat:删去RegistryGameLocator.GameServer

* feat:将重复操作分离为方法

* feat:从文件读取不启动记录
2025-02-22 18:56:25 +08:00
辉鸭蛋
d374a95bb8 new game loading 2024-12-22 14:56:25 +08:00
辉鸭蛋
dcd7831368 auto fix win11 bitblt 2024-11-02 12:57:58 +08:00
辉鸭蛋
6c0b293328 js: add solo task 2024-10-01 21:34:33 +08:00
辉鸭蛋
8bb1d728ff refactor: solo task 2024-09-22 23:56:39 +08:00
辉鸭蛋
4e6190ac7b fixed #598 2024-09-09 22:42:35 +08:00
辉鸭蛋
c5d5ccab0e fix: trigger may not obtain the latest screenshot 2024-09-01 20:23:10 +08:00
qhy040404
c490d29aa1 code cleanup 2024-08-14 18:01:02 +08:00
辉鸭蛋
b07f2ec839 more crystalfly position 2024-08-11 23:21:55 +08:00
辉鸭蛋
ed9a47a3a1 fix dispather thread safe 2024-08-11 20:14:32 +08:00
辉鸭蛋
8fa071722e js : dispatcher.addTimer 2024-08-11 17:58:22 +08:00
辉鸭蛋
65f2aad4c2 add tp click & fix mask window display 2024-07-31 23:44:25 +08:00
辉鸭蛋
f9cada6ef9 revert mask window old style #503 2024-07-29 23:38:30 +08:00
辉鸭蛋
059e21775f unified capture image method 2024-07-21 20:38:06 +08:00
辉鸭蛋
9a76e5ad22 add common task runner 2024-07-20 21:57:39 +08:00
辉鸭蛋
b628ecc2a9 auto skip: use new playing icon 2024-07-17 22:23:10 +08:00
辉鸭蛋
b1534a612c new BaseTaskThread 2024-07-15 22:15:26 +08:00
辉鸭蛋
35354ede17 multiple instances of mask windows #481 2024-07-13 10:17:07 +08:00
辉鸭蛋
cfe963dcae auto skip: backgroud click 2024-06-01 18:09:34 +08:00
辉鸭蛋
92be667328 big map tp 2024-05-21 00:18:44 +08:00
辉鸭蛋
5797c716dc auto music game 2024-05-08 01:59:30 +08:00
辉鸭蛋
06f77a2d5f delete useless variables 2024-05-02 22:40:49 +08:00
辉鸭蛋
7dadf9b9f9 auto restart when switching capture mode 2024-05-02 22:39:26 +08:00
辉鸭蛋
18c1e9f978 automatically restart the dispatcher when the game window size changes 2024-04-28 00:01:04 +08:00
辉鸭蛋
a458b86fab one key fight 2024-04-20 00:14:27 +08:00
辉鸭蛋
f2908509a4 edit tips 2024-04-17 22:49:54 +08:00
辉鸭蛋
e408750d09 auto track mission 2024-04-05 19:54:37 +08:00
辉鸭蛋
8affeff26f optimization 2024-04-04 22:35:36 +08:00
辉鸭蛋
037d4dadff add lock for independent task 2024-03-16 15:20:01 +08:00
辉鸭蛋
c150e6a280 code simplify & consider the scenario of WGC 2024-03-06 22:12:58 +08:00
Mr-Quin
c0f34b6c87 Stop task when game exits and update UI 2024-03-06 00:16:02 -08:00
huiyadanli
591007eff6 fix: no longer display warnings that appear when minimizing and restoring #145 2024-02-27 22:41:58 +08:00
huiyadanli
f9e9be6d9d add WindowsGraphicsCapture cache option 2024-02-23 22:55:31 +08:00
huiyadanli
aedcb3dde5 optimize 2024-02-09 13:05:14 +08:00