Fix stupidity

This commit is contained in:
Otozinclus 2024-12-30 07:01:16 +01:00 committed by GitHub
parent d737b0a967
commit 1241392536
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -176,15 +176,15 @@ namespace Ryujinx.Graphics.Gpu.Shader.DiskCache
GuestCodeAndCbData?[] guestShaders, GuestCodeAndCbData?[] guestShaders,
ShaderSpecializationState specState, ShaderSpecializationState specState,
int programIndex, int programIndex,
bool isCompute) bool isCompute,
int shaderTranslationDelay)
{ {
Thread.Sleep(shaderTranslationDelay); Thread.Sleep(shaderTranslationDelay);
GuestShaders = guestShaders; GuestShaders = guestShaders;
SpecializationState = specState; SpecializationState = specState;
ProgramIndex = programIndex; ProgramIndex = programIndex;
IsCompute = isCompute, IsCompute = isCompute;
int = shaderTranslationDelay;
} }
} }
@ -369,7 +369,7 @@ namespace Ryujinx.Graphics.Gpu.Shader.DiskCache
{ {
try 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); _asyncTranslationQueue.Add(asyncTranslation, _cancellationToken);
} }
catch (OperationCanceledException) catch (OperationCanceledException)