From 12413925360f7d050e0a04d0bc62aec93c85edf3 Mon Sep 17 00:00:00 2001 From: Otozinclus <58051309+Otozinclus@users.noreply.github.com> Date: Mon, 30 Dec 2024 07:01:16 +0100 Subject: [PATCH] Fix stupidity --- .../Shader/DiskCache/ParallelDiskCacheLoader.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Ryujinx.Graphics.Gpu/Shader/DiskCache/ParallelDiskCacheLoader.cs b/src/Ryujinx.Graphics.Gpu/Shader/DiskCache/ParallelDiskCacheLoader.cs index 43d14a246..251c53625 100644 --- a/src/Ryujinx.Graphics.Gpu/Shader/DiskCache/ParallelDiskCacheLoader.cs +++ b/src/Ryujinx.Graphics.Gpu/Shader/DiskCache/ParallelDiskCacheLoader.cs @@ -176,15 +176,15 @@ namespace Ryujinx.Graphics.Gpu.Shader.DiskCache GuestCodeAndCbData?[] guestShaders, ShaderSpecializationState specState, int programIndex, - bool isCompute) + bool isCompute, + int shaderTranslationDelay) { Thread.Sleep(shaderTranslationDelay); GuestShaders = guestShaders; SpecializationState = specState; ProgramIndex = programIndex; - IsCompute = isCompute, - int = shaderTranslationDelay; + IsCompute = isCompute; } } @@ -369,7 +369,7 @@ namespace Ryujinx.Graphics.Gpu.Shader.DiskCache { try { - AsyncProgramTranslation asyncTranslation = new(guestShaders, specState, programIndex, isCompute, _context.DirtyHacks[DirtyHacks.ShaderCompilationThreadSleep); + AsyncProgramTranslation asyncTranslation = new(guestShaders, specState, programIndex, isCompute, _context.DirtyHacks[DirtyHacks.ShaderCompilationThreadSleep]); _asyncTranslationQueue.Add(asyncTranslation, _cancellationToken); } catch (OperationCanceledException)