Tainted Grail: The Fall of Avalonv1.0.02026年11月18日 更新

Dans TG FoA 电池性能修复

针对通过 Proton 或 Wine 运行游戏的 Linux 用户,缓存游戏启动时读取的电池状态,减少反复查询可能造成的帧率下降、卡顿和帧时间不稳定。提供独立版与 BepInEx 版,只能安装其中一个;效果取决于具体系统,不能保证提升性能。

Dans TG FoA 电池性能修复

简介

这是面向 Linux 用户的性能修复,适用于通过 Proton 或 Wine 运行《Tainted Grail: The Fall of Avalon》的情况。部分 Linux 笔记本上,游戏会反复请求 Windows 电池信息;Wine 可能将请求转化为大量 Linux 电源供应文件操作,在受影响的系统上造成帧率下降、帧时间不稳定、卡顿和 GPU 利用率偏低。

本模组在启动时读取一次电池状态,并在本次游戏会话余下时间向游戏返回缓存结果,避免重复执行开销较高的电池状态查询。开发测试系统在移除这项轮询造成的减速后,曾在 Ultra+ 设置下超过 60 FPS;这是单一系统的测试结果,不代表性能保证。实际效果取决于硬件、驱动、Proton 或 Wine 版本、游戏设置,以及电池轮询是否确实是性能问题的原因。

可用版本

提供两个版本:

  • 独立版(Standalone):不需要 BepInEx,推荐给未使用 BepInEx 模组的用户。
  • BepInEx 版:需要 BepInEx 6 IL2CPP for Windows x64,适用于已经安装 BepInEx 或希望使用其他 BepInEx 模组的用户。

只安装一个版本,不要同时安装独立版和 BepInEx 版。 两个版本实现相同的电池状态缓存修复。

功能说明

  • 减少 Proton 和 Wine 环境中的重复电池状态查询。
  • 在受影响的系统上,可能改善帧率、帧时间、卡顿和 GPU 利用率。
  • 只改变运行中游戏进程看到的电池信息。
  • 不隐藏或修改 Linux 电池设备,不修改 /sys/class/power_supply。
  • 不改变 KDE、桌面环境、电池托盘、MangoHud、Proton 或 Wine 的全局行为。
  • 不会永久修改游戏可执行文件。

要求

  • Linux
  • Steam Proton 或其他兼容的 Wine 环境
  • 《Tainted Grail: The Fall of Avalon》

独立版不需要 BepInEx。BepInEx 版需要 BepInEx 6 IL2CPP for Windows x64,本模组不包含 BepInEx。

独立版安装

未安装 BepInEx 时使用此版本。

  1. 关闭游戏。

  2. 下载 Dans TG FoA Battery Performance Fix - Standalone。

  3. 将压缩包解压到包含游戏可执行文件的主游戏目录。winhttp.dll 应与游戏可执行文件位于同一目录。

  4. 在 Steam 启动选项中加入:

    WINEDLLOVERRIDES="winhttp.dll=n,b" %command%
    
  5. 通过 Steam 正常启动游戏。

独立版会在游戏主目录生成 Dans TG FoA Battery Performance Fix.log。安装成功时,日志应包含电池状态已缓存、GetSystemPowerStatus hook 已启用之类的信息。

BepInEx 版安装

已安装 BepInEx,或准备使用其他 BepInEx 模组时使用此版本。

  1. 安装 BepInEx 6 IL2CPP for Windows x64。建议使用 BepInEx 6.0.0-be.785 或更新版本。

  2. 将 BepInEx 解压到包含游戏可执行文件的主游戏目录。

  3. 在 Steam 启动选项中加入:

    WINEDLLOVERRIDES="winhttp.dll=n,b" %command%
    
  4. 启动游戏一次,让 BepInEx 生成所需文件。

  5. 关闭游戏。

  6. 下载 Dans TG FoA Battery Performance Fix - BepInEx。

  7. 将压缩包解压到游戏主目录。

  8. 允许压缩包内的 BepInEx 文件夹与现有文件夹合并。

  9. 确认文件位于以下路径,然后通过 Steam 正常启动游戏:

    BepInEx/plugins/Dans TG FoA Battery Performance Fix/Dans TG FoA Battery Performance Fix.dll
    BepInEx/native/Dans TG FoA Battery Performance Fix/Dans TG FoA Battery Performance Fix.Native.dll
    

验证 BepInEx 版

启动游戏后打开 BepInEx/LogOutput.log,日志中应有类似以下条目:

Loading [Dans TG FoA Battery Performance Fix 1.0.0]

兼容性警告

只能安装一个版本。 独立版通过 winhttp.dll 加载修复;BepInEx 也使用 winhttp.dll 作为加载器。若在 BepInEx 安装上覆盖安装独立版,可能替换 BepInEx 加载器,导致 BepInEx 无法启动。

  • 已安装 BepInEx:使用 BepInEx 版。
  • 未安装 BepInEx:使用独立版。

卸载

独立版

关闭游戏后删除:

winhttp.dll
Dans TG FoA Battery Performance Fix.log
Dans TG FoA Battery Performance Fix - Standalone - README.txt

只有卸载独立版时才删除 winhttp.dll。如果该文件属于仍在使用的 BepInEx 安装,请勿删除。

BepInEx 版

关闭游戏后删除:

BepInEx/plugins/Dans TG FoA Battery Performance Fix
BepInEx/native/Dans TG FoA Battery Performance Fix

其余 BepInEx 文件可以保留。

行为与限制

模组在游戏启动时读取一次 Windows 电池状态,并在本次游戏会话中持续返回缓存状态。Linux 的实际电池状态仍会在 KDE、桌面环境、系统托盘、MangoHud 和其他 Linux 应用中正常更新;只有游戏进程看到的电池信息会被缓存。

只有重复电池查询确实造成性能下降时,本模组才可能改善性能。它不能解决所有低帧率或卡顿问题,也不能修复着色器编译、显存不足、温度降频、驱动问题、CPU 限制或 GPU 限制。

兼容性

本模组面向通过 Proton 或 Wine 运行游戏的 Linux 用户,不针对原生 Windows 安装。游戏更新、BepInEx 更新、Proton 变更或 Wine 变更都可能影响兼容性。

免责声明

本工具按“现状”提供,不作任何保证。使用风险由用户自行承担。

来源与文件

来源列出的依赖与关系

  • 作者列出的前置:BepInEx v5 (Mono)
  • 作者列出的前置:BepInEx 6 IL2CPP for Windows x64 — Required. Download and install BepInEx-Unity.IL2CPP-win-x64-6.0.0-be.785+6abdba4.zip. Extract it into the main game folder containing the executable, then launch the game once before installing this mod.

前往 N 网打开所选文件。安装与下载要求以原作者及平台说明为准。

<!-- aoe-mods-source:nexusmods:taintedgrailthefallofavalon:243 -->

下载模块

共 1 个来源
立即下载推荐来源
前往下载