VERY experimental Nintendo Switch 2 emulator
C++
shader: Calibrate loop safety threshold
ReinUsesLispd633ec4ecc74
diff --git a/src/shader_recompiler/frontend/maxwell/structured_control_flow.cpp b/src/shader_recompiler/frontend/maxwell/structured_control_flow.cppindex 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) {