Skip to content

Commit

Permalink
Only delay shaders translation on Metal
Browse files Browse the repository at this point in the history
  • Loading branch information
Otozinclus authored Jan 1, 2025
1 parent 978d2c1 commit a9d7e22
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,8 @@ public void QueueGuestProgram(GuestCodeAndCbData?[] guestShaders, ShaderSpeciali
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);
Expand Down

0 comments on commit a9d7e22

Please sign in to comment.