mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-26 05:22:29 +08:00
perf: 将运行时间计算从秒改为毫秒
修改_physics_process中的runningTime计算方式,乘以1000以毫秒为单位记录时间,提高时间精度
This commit is contained in:
@@ -9,7 +9,7 @@ func _ready():
|
|||||||
tree = get_tree()
|
tree = get_tree()
|
||||||
rootNode = self
|
rootNode = self
|
||||||
func _physics_process(delta):
|
func _physics_process(delta):
|
||||||
runningTime += delta
|
runningTime += delta * 1000
|
||||||
if EntityBase.mobCount() == 0:
|
if EntityBase.mobCount() == 0:
|
||||||
UIState.setPanel("MakeFeed")
|
UIState.setPanel("MakeFeed")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user