From dfa4ab1f30931163207f095e6512535b5e5a7e87 Mon Sep 17 00:00:00 2001 From: 21in7 Date: Fri, 27 Mar 2026 00:02:43 +0900 Subject: [PATCH] perf: reduce RCON polling in move/explore loops from 0.1s to 0.3s --- action_executor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/action_executor.py b/action_executor.py index 5c33127..4be4624 100644 --- a/action_executor.py +++ b/action_executor.py @@ -161,7 +161,7 @@ class ActionExecutor: stuck_count, last_pos = 0, None for step in range(max_steps): - time.sleep(0.1) + time.sleep(0.3) if step % 20 == 0: result = self.rcon.lua(P + wanted_lua + """ local ok, data = pcall(function() @@ -301,7 +301,7 @@ rcon.print("WALK:" .. string.format("%.1f", dist)) if stuck_count > 30: self.rcon.lua(P + "p.walking_state = {walking = false, direction = defines.direction.north}") return False, f"({x},{y}) 장애물 (거리: {last_dist:.0f})" - time.sleep(0.1) + time.sleep(0.3) self.rcon.lua(P + "p.walking_state = {walking = false, direction = defines.direction.north}") return False, f"({x},{y}) 시간초과 (거리: {last_dist:.0f})"