Only delay shaders translation on Metal

This commit is contained in:
Otozinclus 2025-01-01 06:54:42 +01:00 committed by GitHub
parent 978d2c132b
commit a9d7e227a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -368,7 +368,8 @@ namespace Ryujinx.Graphics.Gpu.Shader.DiskCache
try
{
if (_context.DirtyHacks.IsEnabled(DirtyHack.ShaderTranslationDelay))
Thread.Sleep(_context.DirtyHacks[DirtyHack.ShaderTranslationDelay]);
if (_context.Capabilities.Api == TargetApi.Metal)
Thread.Sleep(_context.DirtyHacks[DirtyHack.ShaderTranslationDelay]);
AsyncProgramTranslation asyncTranslation = new(guestShaders, specState, programIndex, isCompute);
_asyncTranslationQueue.Add(asyncTranslation, _cancellationToken);