The Legend of Heroes: Trails through Daybreak II (2668430)

オープン
#10,395 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
30/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
cpp, linux, wasm

調査の方向性

The fault is in FAudio's mixer thread (DspReverb_INTERNAL_ProcessChannel), not in this Proton repository, and the work is already tracked upstream at FNA-XNA/FAudio#425. Start by reading the linked upstream report and its stack samples, then check whether Proton's FAudio version includes the FTZ/DAZ change. Done means a verified fix or a confirmed upstream resolution, and no workaround is needed in this repo.

索引モデルが issue の本文から書いたものです。

説明

Game compatibility - Unofficial

Compatibility Report

  • Name of the game with compatibility issues: The Legend of Heroes: Trails through Daybreak II
  • Steam AppID of the game: 2668430

System Information

  • GPU: NVIDIA GeForce RTX 4090
  • Video driver version: nvidia 620.70.06
  • Kernel version: 7.3.4 (Bazzite / Fedora Atomic, KDE Plasma on Wayland)
  • Link to full system information report as Gist: not provided; the relevant details are above and can be supplied on request
  • Proton version: Proton Hotfix (hotfix-20261110); also reproduced on Proton Experimental (experimental-11.0-20261112)

I confirm:

  • that I haven't found an existing compatibility report for this game.
  • that I have checked whether there are updates for my system available.

Symptoms

Severe audio stutter and video hitching during pre-rendered cutscenes. Gameplay is fine. The video is slaved to the audio clock, so the video hitches along with the audio.

Cause: the FAudio_AudioClientThread mixing thread sits at about 99% of one CPU core inside FAudio's software reverb (DspReverb_INTERNAL_ProcessChannel). The thread's MXCSR was 0x1fb2, which has the sticky denormal and underflow flags set and FTZ/DAZ clear. Setting FTZ|DAZ on the live thread (gdb -p <tid> -batch -ex 'set $mxcsr = $mxcsr | 0x8040') dropped it from 99.8% to about 10% CPU within seconds and fixed the audio. PipeWire showed 0 xruns, and the GPU and the rest of the CPU were idle.

This is a bug in FAudio's mixer thread, not in the game. I have filed it upstream with the stack samples, the MXCSR values and a suggested fix (enable FTZ/DAZ inside the mixer thread): https://github.com/FNA-XNA/FAudio/issues/425

Filing here so Proton users can find it, and so the fix can be picked up when Proton's FAudio is updated. Note that an LD_PRELOAD workaround is not possible because Wine resets MXCSR to 0x1f80 when each thread starts.

Reproduction

  1. Run the game under Proton Hotfix or Proton Experimental.
  2. Play any story cutscene or the opening movie.
  3. top -H -p $(pgrep -x kuro2.exe): the FAudio_AudioCli thread sits near 100% and the audio crackles.

I have not attached a PROTON_LOG because the cause was found with gdb on the live process rather than from Proton's logs. I can capture one if it would help.

主要言語
C++
スター
33.4k
フォーク
1.8k
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ValveSoftware/Proton のほかの issue

ValveSoftware/Proton の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。