Change _physics_process to _process to improve slightly performance

This commit is contained in:
karl 2020-01-29 01:42:02 +01:00
parent ba7e484e5f
commit f07063be0b
2 changed files with 4 additions and 9 deletions

View File

@ -2110,12 +2110,10 @@ environment = SubResource( 19 )
[node name="Light" type="Spatial" parent="."] [node name="Light" type="Spatial" parent="."]
[node name="SpotLight" parent="Light" instance=ExtResource( 24 )] [node name="SpotLight" parent="Light" instance=ExtResource( 24 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 7, -5 )
[node name="SpotLight2" parent="Light" instance=ExtResource( 24 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 7, -15 )
[node name="SpotLight3" parent="Light" instance=ExtResource( 24 )] [node name="SpotLight3" parent="Light" instance=ExtResource( 24 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 7, -30 ) transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 7, -26 )
[node name="SpotLight6" parent="Light" instance=ExtResource( 24 )] [node name="SpotLight6" parent="Light" instance=ExtResource( 24 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -16.8823, 5, -70.7544 ) transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -16.8823, 5, -70.7544 )
@ -2124,10 +2122,7 @@ transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -16.8823, 5, -70.7544 )
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 14.1177, 5, -70.7544 ) transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 14.1177, 5, -70.7544 )
[node name="SpotLight9" parent="Light" instance=ExtResource( 24 )] [node name="SpotLight9" parent="Light" instance=ExtResource( 24 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 39.1177, 5, -70.7544 ) transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 48.1177, 5, -68.7544 )
[node name="SpotLight10" parent="Light" instance=ExtResource( 24 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 47.9017, 5, -63.7544 )
[node name="SpotLight12" parent="Light" instance=ExtResource( 24 )] [node name="SpotLight12" parent="Light" instance=ExtResource( 24 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 47.9017, 5, -27.7544 ) transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 47.9017, 5, -27.7544 )

View File

@ -47,7 +47,7 @@ func _ready():
counter+=1 counter+=1
func _physics_process(delta: float) -> void: func _process(delta: float) -> void:
var pipes = get_tree().get_nodes_in_group("Pipes") var pipes = get_tree().get_nodes_in_group("Pipes")
for p in pipes: for p in pipes: