[#12643] 通过 DataPatch 添加的音效播放过多时会出现严重卡顿
问题摘要
使用 DataPatch 添加的音效在频繁播放时会导致严重卡顿。该问题在原版音效中未出现,且此前版本不存在此问题。
影响范围 Windows · Audio · DataPatch · Performance · bug · 版本 160.1
状态 Open · 作者 m1cxzfw3q · 标签 bug
问题描述
用户报告在使用 DataPatch 添加的音效被大量播放时,游戏会出现严重卡顿。此问题在原版音效中不存在,且以前版本未出现。
如何复现
- 使用 DataPatch 创建声音。
- 使用任何方法(例如 World Processor 的 Play Sound 语句)尽可能多地调用这些声音。
预期行为
大量播放 DataPatch 添加的音效时,游戏应正常运行,不出现严重卡顿。
实际行为
大量播放 DataPatch 添加的音效时,游戏出现严重卡顿。
环境
- 平台:Windows
- Build:160.1
- Windows
- Build 160.1
- 无 Mod
可能涉及
- Audio system
- DataPatch implementation
- Sound caching/loading
- World Processor execution
以上内容为根据 Issue 描述推断的可能相关区域,不代表维护者结论。
报告信息
- ✅ 已提供复现步骤
- ✅ 已提供版本信息
- ❌ 未提供错误日志
- ✅ 已提供截图或附件
- logs
GitHub 原文
Platforms
Windows
Build
160.1
Issue
There was no such issue before.
I did not find these issues in any of the original versions' sound effects.
Steps to reproduce
Create sound using DataPatch and call them as many times as possible using any method (e.g., the World Processor's Play Sound statement)
Mods used
none
Save file
(Crash) logs
No response
Submission
- I have updated to the latest release (https://github.com/Anuken/Mindustry/releases) to make sure my issue has not been fixed.
- I have searched the closed and open issues to make sure that this problem has not already been reported.
- I am not using Foo's Client.
- This issue occurs with no mods enabled.
- I have attached a valid save file.
由 MDT GitHub 同步机器人自动同步。中文翻译、摘要及部分分析由 AI 生成,仅供参考。