aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Audio/Renderer/Dsp/Command/PerformanceCommand.cs
diff options
context:
space:
mode:
authorTSR Berry <20988865+TSRBerry@users.noreply.github.com>2023-04-08 01:22:00 +0200
committerMary <thog@protonmail.com>2023-04-27 23:51:14 +0200
commitcee712105850ac3385cd0091a923438167433f9f (patch)
tree4a5274b21d8b7f938c0d0ce18736d3f2993b11b1 /Ryujinx.Audio/Renderer/Dsp/Command/PerformanceCommand.cs
parentcd124bda587ef09668a971fa1cac1c3f0cfc9f21 (diff)
Move solution and projects to src
Diffstat (limited to 'Ryujinx.Audio/Renderer/Dsp/Command/PerformanceCommand.cs')
-rw-r--r--Ryujinx.Audio/Renderer/Dsp/Command/PerformanceCommand.cs47
1 files changed, 0 insertions, 47 deletions
diff --git a/Ryujinx.Audio/Renderer/Dsp/Command/PerformanceCommand.cs b/Ryujinx.Audio/Renderer/Dsp/Command/PerformanceCommand.cs
deleted file mode 100644
index d3e3f805..00000000
--- a/Ryujinx.Audio/Renderer/Dsp/Command/PerformanceCommand.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-using Ryujinx.Audio.Renderer.Server.Performance;
-
-namespace Ryujinx.Audio.Renderer.Dsp.Command
-{
- public class PerformanceCommand : ICommand
- {
- public enum Type
- {
- Invalid,
- Start,
- End
- }
-
- public bool Enabled { get; set; }
-
- public int NodeId { get; }
-
- public CommandType CommandType => CommandType.Performance;
-
- public uint EstimatedProcessingTime { get; set; }
-
- public PerformanceEntryAddresses PerformanceEntryAddresses { get; }
-
- public Type PerformanceType { get; set; }
-
- public PerformanceCommand(ref PerformanceEntryAddresses performanceEntryAddresses, Type performanceType, int nodeId)
- {
- Enabled = true;
- PerformanceEntryAddresses = performanceEntryAddresses;
- PerformanceType = performanceType;
- NodeId = nodeId;
- }
-
- public void Process(CommandList context)
- {
- if (PerformanceType == Type.Start)
- {
- PerformanceEntryAddresses.SetStartTime(context.GetTimeElapsedSinceDspStartedProcessing());
- }
- else if (PerformanceType == Type.End)
- {
- PerformanceEntryAddresses.SetProcessingTime(context.GetTimeElapsedSinceDspStartedProcessing());
- PerformanceEntryAddresses.IncrementEntryCount();
- }
- }
- }
-} \ No newline at end of file