From 870d9599cc056e515dd63620fd10bf9fee4992ee Mon Sep 17 00:00:00 2001 From: gdkchan Date: Thu, 18 Jan 2024 14:17:38 -0300 Subject: Change shader cache init wait method (#6131) * Change shader cache init wait method * Make field readonly --- src/ARMeilleure/Translation/Translator.cs | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/ARMeilleure') diff --git a/src/ARMeilleure/Translation/Translator.cs b/src/ARMeilleure/Translation/Translator.cs index 7f6a25b0..48c1a575 100644 --- a/src/ARMeilleure/Translation/Translator.cs +++ b/src/ARMeilleure/Translation/Translator.cs @@ -57,9 +57,6 @@ namespace ARMeilleure.Translation private Thread[] _backgroundTranslationThreads; private volatile int _threadCount; - // FIXME: Remove this once the init logic of the emulator will be redone. - public static readonly ManualResetEvent IsReadyForTranslation = new(false); - public Translator(IJitMemoryAllocator allocator, IMemoryManager memory, bool for64Bits) { _allocator = allocator; @@ -100,8 +97,6 @@ namespace ARMeilleure.Translation { if (Interlocked.Increment(ref _threadCount) == 1) { - IsReadyForTranslation.WaitOne(); - if (_ptc.State == PtcState.Enabled) { Debug.Assert(Functions.Count == 0); -- cgit v1.2.3