From 1d182fc0f5f8a6facf6e4aebcf79d6d9a092a48c Mon Sep 17 00:00:00 2001
From: ReinUsesLisp <reinuseslisp@airmail.cc>
Date: Sat, 19 Jun 2021 21:30:27 -0300
Subject: shader: Calibrate loop safety threshold

---
 src/shader_recompiler/frontend/maxwell/structured_control_flow.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/shader_recompiler/frontend/maxwell/structured_control_flow.cpp')

diff --git a/src/shader_recompiler/frontend/maxwell/structured_control_flow.cpp b/src/shader_recompiler/frontend/maxwell/structured_control_flow.cpp
index 605ec38e13..0fb870a695 100644
--- a/src/shader_recompiler/frontend/maxwell/structured_control_flow.cpp
+++ b/src/shader_recompiler/frontend/maxwell/structured_control_flow.cpp
@@ -751,7 +751,7 @@ private:
                     IR::Block* const init_block{block_pool.Create(inst_pool)};
                     IR::IREmitter ir{*init_block};
 
-                    static constexpr u32 SAFETY_THRESHOLD = 0x2000;
+                    static constexpr u32 SAFETY_THRESHOLD = 0x1000;
                     ir.SetLoopSafetyVariable(this_loop_id, ir.Imm32(SAFETY_THRESHOLD));
 
                     if (current_block) {
-- 
cgit v1.2.3-70-g09d2