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

Đang mở
#10,395 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
30/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
cpp, linux, wasm

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
C++
Star
33.4k
Fork
1.8k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ValveSoftware/Proton

Tất cả issue của ValveSoftware/Proton

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.