diff options
| author | 2023-09-07 20:53:48 +0100 | |
|---|---|---|
| committer | 2023-09-07 20:53:48 +0100 | |
| commit | 4baaaf6a99ad763958bbc0ffa6d30ce75309f80a (patch) | |
| tree | 2594a4bdfefae0ef640dff868a6a229b176b714b /src/audio_core/renderer/system.cpp | |
| parent | Merge pull request #11428 from Kelebek1/adsp_rework (diff) | |
| download | yuzu-4baaaf6a99ad763958bbc0ffa6d30ce75309f80a.tar.gz yuzu-4baaaf6a99ad763958bbc0ffa6d30ce75309f80a.tar.xz yuzu-4baaaf6a99ad763958bbc0ffa6d30ce75309f80a.zip | |
Do not reset the command buffer command count each time
Diffstat (limited to 'src/audio_core/renderer/system.cpp')
| -rw-r--r-- | src/audio_core/renderer/system.cpp | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/src/audio_core/renderer/system.cpp b/src/audio_core/renderer/system.cpp index 8f02754c5..d29754634 100644 --- a/src/audio_core/renderer/system.cpp +++ b/src/audio_core/renderer/system.cpp | |||
| @@ -609,17 +609,11 @@ void System::SendCommandToDsp() { | |||
| 609 | time_limit_percent = 70.0f; | 609 | time_limit_percent = 70.0f; |
| 610 | } | 610 | } |
| 611 | 611 | ||
| 612 | AudioRenderer::CommandBuffer command_buffer{ | 612 | auto time_limit{ |
| 613 | .buffer{translated_addr}, | 613 | static_cast<u64>((time_limit_percent / 100) * 2'880'000.0 * |
| 614 | .size{command_size}, | 614 | (static_cast<f32>(render_time_limit_percent) / 100.0f))}; |
| 615 | .time_limit{ | 615 | audio_renderer.SetCommandBuffer(session_id, translated_addr, command_size, time_limit, |
| 616 | static_cast<u64>((time_limit_percent / 100) * 2'880'000.0 * | 616 | applet_resource_user_id, reset_command_buffers); |
| 617 | (static_cast<f32>(render_time_limit_percent) / 100.0f))}, | ||
| 618 | .applet_resource_user_id{applet_resource_user_id}, | ||
| 619 | .reset_buffer{reset_command_buffers}, | ||
| 620 | }; | ||
| 621 | |||
| 622 | audio_renderer.SetCommandBuffer(session_id, command_buffer); | ||
| 623 | reset_command_buffers = false; | 617 | reset_command_buffers = false; |
| 624 | command_buffer_size = command_size; | 618 | command_buffer_size = command_size; |
| 625 | if (remaining_command_count == 0) { | 619 | if (remaining_command_count == 0) { |