mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2025-01-08 20:01:59 +00:00
Only delay shader translation on Metal (#480)
This way the Arbitrary Shader Translation Delay hack will no longer affect shader loading when using Vulkan.
This commit is contained in:
parent
003a6d322b
commit
37c165e9fc
1 changed files with 1 additions and 1 deletions
|
@ -367,7 +367,7 @@ namespace Ryujinx.Graphics.Gpu.Shader.DiskCache
|
|||
{
|
||||
try
|
||||
{
|
||||
if (_context.DirtyHacks.IsEnabled(DirtyHack.ShaderTranslationDelay))
|
||||
if (_context.Capabilities.Api == TargetApi.Metal && _context.DirtyHacks.IsEnabled(DirtyHack.ShaderTranslationDelay))
|
||||
Thread.Sleep(_context.DirtyHacks[DirtyHack.ShaderTranslationDelay]);
|
||||
|
||||
AsyncProgramTranslation asyncTranslation = new(guestShaders, specState, programIndex, isCompute);
|
||||
|
|
Loading…
Reference in a new issue