aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ARMeilleure/Translation/PTC/Ptc.cs10
-rw-r--r--src/Ryujinx.Graphics.Gpu/GpuContext.cs10
2 files changed, 16 insertions, 4 deletions
diff --git a/src/ARMeilleure/Translation/PTC/Ptc.cs b/src/ARMeilleure/Translation/PTC/Ptc.cs
index 58f06534..f56bdce1 100644
--- a/src/ARMeilleure/Translation/PTC/Ptc.cs
+++ b/src/ARMeilleure/Translation/PTC/Ptc.cs
@@ -857,8 +857,14 @@ namespace ARMeilleure.Translation.PTC
Stopwatch sw = Stopwatch.StartNew();
- threads.ForEach((thread) => thread.Start());
- threads.ForEach((thread) => thread.Join());
+ foreach (var thread in threads)
+ {
+ thread.Start();
+ }
+ foreach (var thread in threads)
+ {
+ thread.Join();
+ }
threads.Clear();
diff --git a/src/Ryujinx.Graphics.Gpu/GpuContext.cs b/src/Ryujinx.Graphics.Gpu/GpuContext.cs
index aa0084fd..53ea8cb2 100644
--- a/src/Ryujinx.Graphics.Gpu/GpuContext.cs
+++ b/src/Ryujinx.Graphics.Gpu/GpuContext.cs
@@ -395,8 +395,14 @@ namespace Ryujinx.Graphics.Gpu
{
Renderer.CreateSync(SyncNumber, strict);
- SyncActions.ForEach(action => action.SyncPreAction(syncpoint));
- SyncpointActions.ForEach(action => action.SyncPreAction(syncpoint));
+ foreach (var action in SyncActions)
+ {
+ action.SyncPreAction(syncpoint);
+ }
+ foreach (var action in SyncpointActions)
+ {
+ action.SyncPreAction(syncpoint);
+ }
SyncNumber++;