mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-11-28 01:50:50 +01:00
Replace "List.ForEach" for "foreach" (#6783)
* Replace "List.ForEach" for "foreach" * dotnet format * Update Ptc.cs * Update GpuContext.cs
This commit is contained in:
parent
ab12fbe963
commit
a23d8cb92f
@ -857,8 +857,14 @@ namespace ARMeilleure.Translation.PTC
|
|||||||
|
|
||||||
Stopwatch sw = Stopwatch.StartNew();
|
Stopwatch sw = Stopwatch.StartNew();
|
||||||
|
|
||||||
threads.ForEach((thread) => thread.Start());
|
foreach (var thread in threads)
|
||||||
threads.ForEach((thread) => thread.Join());
|
{
|
||||||
|
thread.Start();
|
||||||
|
}
|
||||||
|
foreach (var thread in threads)
|
||||||
|
{
|
||||||
|
thread.Join();
|
||||||
|
}
|
||||||
|
|
||||||
threads.Clear();
|
threads.Clear();
|
||||||
|
|
||||||
|
@ -395,8 +395,14 @@ namespace Ryujinx.Graphics.Gpu
|
|||||||
{
|
{
|
||||||
Renderer.CreateSync(SyncNumber, strict);
|
Renderer.CreateSync(SyncNumber, strict);
|
||||||
|
|
||||||
SyncActions.ForEach(action => action.SyncPreAction(syncpoint));
|
foreach (var action in SyncActions)
|
||||||
SyncpointActions.ForEach(action => action.SyncPreAction(syncpoint));
|
{
|
||||||
|
action.SyncPreAction(syncpoint);
|
||||||
|
}
|
||||||
|
foreach (var action in SyncpointActions)
|
||||||
|
{
|
||||||
|
action.SyncPreAction(syncpoint);
|
||||||
|
}
|
||||||
|
|
||||||
SyncNumber++;
|
SyncNumber++;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user