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

Aperta
#10,395 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
30/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
cpp, linux, wasm

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
C++
Stelle
33.4k
Fork
1.8k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ValveSoftware/Proton

Tutte le issue di ValveSoftware/Proton

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.