From ad6b7f385555be769f3b4170b16baee08fe9f077 Mon Sep 17 00:00:00 2001 From: DKChan <524912269@qq.com> Date: Fri, 2 Oct 2026 18:46:43 +0800 Subject: [PATCH] =?UTF-8?q?t17=5Fdefer=5Fprobe=20=E4=B8=89=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E6=88=B3=E8=AF=AD=E4=B9=89=E5=8C=96=EF=BC=88AP?= =?UTF-8?q?=E7=94=A8=E5=AE=8C=E8=A7=A6=E5=8F=91=E7=BB=93=E7=AE=97/?= =?UTF-8?q?=E8=A1=8C=E5=85=A5=E9=98=9F=E5=AE=8C=E6=88=90/=E5=BC=B9?= =?UTF-8?q?=E7=AA=97=E5=87=BA=E7=8E=B0+=E4=B8=A4=E6=AE=B5=E7=9B=B8?= =?UTF-8?q?=E5=B7=AE=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game/smoke/t17_defer_probe.gd | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/game/smoke/t17_defer_probe.gd b/game/smoke/t17_defer_probe.gd index 4590ff73..e785039c 100644 --- a/game/smoke/t17_defer_probe.gd +++ b/game/smoke/t17_defer_probe.gd @@ -51,6 +51,7 @@ func _ready() -> void: # 直挖至击杀胜利(settle_batch 真实管线——step_row 信号→排播队列,与点击路径同链) var ms = main.settlement.minesweeper var guard := 200 + var t_ap_out := -1 # 时间戳⓪:AP 用完/停手——行动经济翻 Waiting 的那一帧(轮末结算触发点) while guard > 0 and String(main.settlement.battle_result) == "": guard -= 1 var plan = load("res://smoke/auto_player.gd").choose_dig(ms) @@ -61,6 +62,8 @@ func _ready() -> void: if plan.hero_cell != ms.hero_pos(): ms.settle_batch([{"action": "move", "cell": plan.hero_cell}]) ms.settle_batch([{"action": "dig", "cell": plan.dig_cell}]) + if t_ap_out < 0 and main.settlement.action_economy.phase != "Active": + t_ap_out = Time.get_ticks_msec() await get_tree().process_frame if String(main.settlement.battle_result) != "victory": _fail("战斗未胜利(result='%s')" % str(main.settlement.battle_result)) @@ -81,8 +84,8 @@ func _ready() -> void: await get_tree().process_frame waited += get_process_delta_time() var t_popup := Time.get_ticks_msec() # 时间戳②:终局面可见帧 - print("[t17_defer] 时间戳: 结算入队=%d ms · 弹窗可见=%d ms · 相差=%d ms(行数=%d)" % [ - t_settle, t_popup, t_popup - t_settle, main._row_pacer.pending_rows().size() + _played_rows]) + print("[t17_defer] AP用完/触发结算=%d ms · 结算行入队完成=%d ms(两者相差 %d ms——核心同步架构同帧)· 弹窗出现=%d ms(距触发结算 %d ms = 逐行演播时长,行数 %d)" % [ + t_ap_out, t_settle, t_settle - t_ap_out, t_popup, t_popup - t_ap_out, _played_rows]) if not main._end_overlay.is_open(): _problems.append("排播放完后终局面未开(%.1fs——演播完边沿派发失守)" % waited) if _problems.is_empty():