From cf8368a946de8fdc57bfbd10e069de3d8a87ddda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=A8=E8=90=BD=E5=9F=BA=E5=9B=B4=E8=99=BE?= <3161880837@qq.com> Date: Fri, 29 Aug 2025 10:30:20 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E5=B0=86=E8=BF=90=E8=A1=8C=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E8=AE=A1=E7=AE=97=E4=BB=8E=E7=A7=92=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E6=AF=AB=E7=A7=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改_physics_process中的runningTime计算方式,乘以1000以毫秒为单位记录时间,提高时间精度 --- scripts/Tools/WorldManager.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Tools/WorldManager.gd b/scripts/Tools/WorldManager.gd index c66d57f..482df67 100644 --- a/scripts/Tools/WorldManager.gd +++ b/scripts/Tools/WorldManager.gd @@ -9,7 +9,7 @@ func _ready(): tree = get_tree() rootNode = self func _physics_process(delta): - runningTime += delta + runningTime += delta * 1000 if EntityBase.mobCount() == 0: UIState.setPanel("MakeFeed")