Repository navigation
GameTrans 1.6.0
GameTrans 1.6.0
本次更新修复「开启 NVIDIA 即时重放时,按 F8 翻译会弹出『GameTrans 正在阻止桌面录制』并强制关闭即时重放」的问题,同时把叠加层的捕获排除标记改为可选设置。
新增 / Added
中文
- 叠加层捕获排除开关:设置 → 文本叠加层新增「从截图 / 录制中排除叠加层」(
overlay.excludeFromCapture,默认开启)。关闭后叠加层不再带WDA_EXCLUDEFROMCAPTURE,NVIDIA App / GeForce Experience 的即时重放(桌面捕获)不再被强制停录;重复识别自身译文的问题改由「每次截图前先隐藏叠加层、截图后恢复」避免。开启时设置页显示红色警示,说明 NVIDIA 录制会被强制停止。
English
- Overlay capture-exclusion toggle: Settings → Text overlay now has Exclude overlay from capture (
overlay.excludeFromCapture, on by default). When off, the overlay no longer carriesWDA_EXCLUDEFROMCAPTURE, so NVIDIA App / GeForce Experience Instant Replay (desktop capture) is no longer force-stopped; self-recognition is avoided instead by hiding the overlay before each capture and restoring it afterwards. A red warning in Settings states the cost while the option is on.
修复 / Fixed
中文
- 按 F8 后 NVIDIA 即时重放被强制关闭:叠加层默认带驱动级「防录制」标记(
WDA_EXCLUDEFROMCAPTURE),NvFBC 会把它判定为受保护内容并停止录制。现在可在设置 → 文本叠加层取消勾选,叠加层隐藏时也会主动恢复WDA_NONE,不再出现「关掉叠加层也开不回即时重放」;若仍希望保留该标记,可在 NVIDIA App 中按 Alt+Z → 设置 → 视频捕获,关闭「桌面捕获」只录制游戏画面。被停录后需手动重新开启即时重放。
English
- Pressing F8 force-stopped NVIDIA Instant Replay: the overlay carried a driver-level anti-capture flag (
WDA_EXCLUDEFROMCAPTURE), which NvFBC treats as protected content and stops recording. Clear Exclude overlay from capture in Settings → Text overlay; the affinity is also released (WDA_NONE) whenever the overlay hides, so Instant Replay can be re-enabled without closing the app. To keep the flag instead, open NVIDIA App with Alt+Z → Settings → Video capture and turn Desktop capture off so only the game is recorded. Instant Replay has to be re-enabled manually after it is stopped.
变更 / Changed
- 截图前的固定 80 ms 等待改为
DwmFlush()同步 + 16 ms 余量:关闭排除标记后仍保证截图中不含上一次的译文,同时缩短 F8 的响应延迟。 - 自检新增捕获排除标记的真实窗口断言(开启
0x11/ 隐藏后0x0/ 关闭0x0)与配置序列化往返检查。 - README、README.en、docs/DESIGN 与中英文设置页截图同步。
下载 / Download
GameTrans.exe— Windows x64,自包含单文件,无需 .NET 运行时,默认无需管理员权限。
升级说明 / Upgrade notes
- 配置与 1.5.x 兼容:新增可选字段
overlay.excludeFromCapture,缺省为true(保持原有行为)。 - 使用 NVIDIA 即时重放 / 桌面捕获录制时,请在设置 → 文本叠加层取消勾选「从截图 / 录制中排除叠加层」,然后重新开启即时重放。
- 运行中的旧版本请先从托盘退出,再替换可执行文件。
项目主页 / Project: https://github.com/ab-Royo/GameTrans
QQ 群 / QQ group: 419733401
Bilibili: https://m.bilibili.com/space/51952428